Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

UG NX and VB.NET 5

Status
Not open for further replies.

gedkins

Mechanical
May 11, 2001
45
I am not a UG user currently but the company is going to move onto NX soon. I was told by a sales rep in July 2003 that this coming Oct UG would announce a full API set that will work with VB.Net. Has anyone else heard anything to this effect. I am skeptical since UG still supports UNIX and thus cross-platform usage issues come up.

Thanks

Guy Edkins
Managing Partner
Delta Group Ltd

gedkins@deltagl.com
 
Replies continue below

Recommended for you

Jason,

Maybe your SolidWorks spoiled PRT files of having Custom Properties under Windows Explorer? :)

Henry
 
Solidworks has never been on this PC. New job that uses UG, my old job used Solidworks.

Tough transition mind ya, but I'm getting there.

Jason Capriotti
Smith & Nephew, Inc.
 
The following command adds a fifth tab titled "Attributes" to the windows explorer properties page for .prt files.

regsvr32 "%ugii_base_dir%"\ugii\ugpropext.dll

Windows Explorer must be restarted - (logoff/login)

Part file(s) must be saved in NX2.

Uninstalling, reinstalling, relocating, or upgrading NX will not ungregister the dll. (use regsvr32 /u ...)
 
jpetach,

Thats on hell of fine tip.
Now does anyone know is it possible to use DSOFile.dll to read-write these attributes?

Henry
 
jpetach, thanks for the info - I think it's worth a star.
 
Joe,
Where is this command, ugpropext.dll, documented?

Are you sharing UGS secret files that only employees know how they function? There are a few in the ugii directory if you are willing to experiment with them.




"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
 
Henry,

As I suggested earlier in the thread as long as the UG file format adheres to the MS header format then DSOfile will read/write the properties very nicely. It is amazing how fast it can do it too. I regularly write 400 to 500 files in just a few seconds. Keep in mind the files cannot be open by any other process if you are attempting to write via DSO. You can do error checking for that however or batch it for an off hours process.



Guy Edkins
Managing Partner
Delta Group Ltd

gedkins@deltagl.com
 
Folks,

It appears that Ben was correct in his original statement about UG Attributes being internal to UG and not passed to the windows header data. I set up my machine with UG and enabled the custom prop extension and then ran my standard DSO tool against a UG file and no luck, it does not "see" the UG "Attributes". So my automation tools won't work for now (running 2.0.2.2). With the advent of 3.0 we may see an improvement in external data management of UG. Oh well, I think got somewhat hoodwinked by the UG sales folks earlier this year with the demo they did.


Guy Edkins
Managing Partner
Delta Group Ltd

gedkins@deltagl.com
 
Ben,

I wish I had "secrets" to tell ;-)

The NX2 Beta What's New Guide was the first mention of the part attributes access in Windows explorer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor