cancel
Showing results for 
Search instead for 
Did you mean: 

Include/Hide a .prt model inside a VB code

Pioneer
Pioneer

Hi,

I have a CAD model that I use inside a .dll VB code to do some operations.

Is it possibile to hide this model to the user enclosing it into the dll?

 

Thanks

 

Luigi

2 REPLIES

Re: Include/Hide a .prt model inside a VB code

Genius
Genius

Yes, you can add the file as an embedded resource to your dll (add it to your vs project and set embedded ressource in properties).

Use Assembly.GetManifestResourceStream to retrieve the data (presumably you have to store it as a temporary file to do something useful with it).

 

Regards

Jan

 

Jan Böttcher

Re: Include/Hide a .prt model inside a VB code

Esteemed Contributor
Esteemed Contributor

Is the model highly complex?

If not too bad, can you just create it "on the fly" (when you need it) (i.e. create a block then add a hole then ...)

 

Depending on what you are doing, another option might be UDF (user defined feature)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled