Ilogic parasolid export solid body visibility

Ilogic parasolid export solid body visibility

rob
Advocate Advocate
585 Views
3 Replies
Message 1 of 4

Ilogic parasolid export solid body visibility

rob
Advocate
Advocate

We export to parasolid via Ilogic for CNC nesting purposes; until recently IV solid bodies hidden in multi-body parts did not export or exported 'empty'.  We recently experienced that both visible and hidden bodies are now exporting and this is not desired.

 

Are there options I can set in Ilogic to configure the export as desired, i.e. hidden bodies not exported?  If so, how do I go about this?  Our current Ilogic snip is below for reference:

 

'Get and configure Parasolid translator------------------------------------------------------------------
'Get the assembly model from the view defined as VIEW1 in the drawing
'Dim strDoc As Inventor.Document = ActiveSheet.View("VIEW1").ModelDocument
Dim strDoc As Inventor.AssemblyDocument = ThisApplication.Documents.Open(strAssyName, False)
'Dim strSBRenamePart As Inventor.PartDocument = ThisApplication.Documents.Open(strPartFullFileName, False) 'opens file as not visible
xtAddIn = ThisApplication.ApplicationAddIns.ItemById("{A8F8F8E5-BBAB-4f74-8B1B-AC011251F8AC}")
'strDocument = ThisApplication.ActiveDocument
strContext = ThisApplication.TransientObjects.CreateTranslationContext
strContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
strOptions = ThisApplication.TransientObjects.CreateNameValueMap
strDataMedium = ThisApplication.TransientObjects.CreateDataMedium
If xtAddIn.HasSaveCopyAsOptions(strDoc, strContext, strOptions) Then
strOptions.Value("Version") = 31
End If
'Set the destination file name
strDataMedium.FileName = strParasolidFullFileName & ".x_t"
'Publish document.
xtAddIn.SaveCopyAs(strDoc, strContext, strOptions, strDataMedium)
'Close assembly model
strDoc.Close

IV Pro 2020.2
0 Likes
586 Views
3 Replies
Replies (3)
Message 2 of 4

rob
Advocate
Advocate

Can someone please confirm IV intended operation: that invisible/hidden solid bodies are by default NOT exported?  This is the behaviour we had previously in any case.

 

I am finding that manual export is now also including the hidden bodies, same as Ilogic export so nothing to do with Ilogic.  

 

Should I repost this issue in the other IV forum?

IV Pro 2020.2
0 Likes
Message 3 of 4

rob
Advocate
Advocate

Some more information as I troubleshoot.

 

When I export from a multibody part with different view representations of hidden/visible bodies, it operates as expected: hidden bodies are not exported, only visible bodies are exported.  Solid body names are preserved through when importing that parasolid back into IV>

 

When I export from an assembly containing three instances of the same part with different view representations, all bodies are exported regardless of whether hidden or visible; I wind up with three instances of each body.  Also, body names are not preserved; each body has the name of the part with an instance number.

 

This seems to me to be a change in IV methodology; is it a local setting change or ???

IV Pro 2020.2
0 Likes
Message 4 of 4

J-Camper
Advisor
Advisor

We have a similar workflow, we export plywood parts from multisolid parts through RouterSIM for nesting.  RouterSIM requires unwanted solid bodies to be suppressed through features in order to skip a solid body, turning visibility off creates "blank" part like you said which messes up nested cut-list by offsetting solid body names. 

 

My two main work-arounds are 1) turn a solid into a surface by deleting a face [surface can be derived out for use as a separate part for the model] 2) create derived parts linked to view representations [this is helpful when we have several different sheet good materials in one part file]

 

If your current code is working from the part level with view representations, you could write a script to:

open each part in an assembly one at a time

provide a list of view reps to choose from or program in the desired name if it is consistant

activate desired view rep and export part with current code

Close part and move on to next.

0 Likes