Exporting Parasolid files

Exporting Parasolid files

nfelixCXUGM
Enthusiast Enthusiast
832 Views
3 Replies
Message 1 of 4

Exporting Parasolid files

nfelixCXUGM
Enthusiast
Enthusiast

Hi,

 

Right now we are able to export PDF, DWG and Step. I want to be able to add Parasolid files (.x_b), should i add Parasolid to below code or something else? Hope i'm being clear.

 

checkpdfs = Nz(Me.chkPDFs, 0)
Checkdwgs = Nz(Me.chkDWGs, 0)
checkdxfs = Nz(Me.chkDXFs, 0)
checksteps = Nz(Me.chkSteps, 0)

0 Likes
Accepted solutions (1)
833 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Hi @nfelixCXUGM.  I am not sure what that code you are showing above is supposed to be doing, because I have never seen code exactly like that before, but I assume it must have something to do with exporting Inventor files to other file types.  Are you calling some sort of custom Function to run with those lines of code?  I do know that we can export model files to Parasolid Binary Files (.x_b) manually, so we should also be able to export them by code also.  I have never needed to use those file types for anything before, so I am not super familiar with them.  Which coding language are you using? (iLogic / VB.NET, VBA, C#, other)

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

Frederick_Law
Mentor
Mentor

Just try and see what happen.

 

We have no idea what Nz() is.  So we won't know what it can do.

0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor
Accepted solution

Hi @nfelixCXUGM.  Attached is a text file containing the code for an iLogic rule example you can try for exporting a model file to Parasolid Binary file (.x_b).  Many of these iLogic code examples for exporting a native Inventor file type to some other type of file, using one of the 'TranslatorAddIns' that come installed in Inventor, are pretty similar, so I copied one of my other codes for exporting, then modified it a bit for exporting that file type.  As far as I know there are only two options available for that scenario ('IncludeSketches' & 'Version'), so I included those two options in this code example.  I set the 'IncludeSketches' option to True, and set the 'Version' option to 35, but you can change those to whichever values you want.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes