iLogic - sheetmetal export config

iLogic - sheetmetal export config

Anonymous
Not applicable
467 Views
2 Replies
Message 1 of 3

iLogic - sheetmetal export config

Anonymous
Not applicable

Greetings all, 

 

I am in the process of setting up an export rule in ilogic and have followed the following: 

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-for-creating-flat-pattern-for-sheet-met...

 

This method works great however is there a way to define the config file? 

I am assuming that it is somewhere in this string: 

oDataMedium.FileName = oFolder & "\" & CustomName  & " " & oFileName & ".dxf"

Dim oCompDef As SheetMetalComponentDefinition
oCompDef = oDrawDoc.ComponentDefinition
If oCompDef.HasFlatPattern = False Then
oCompDef.Unfold
Else
oCompDef.FlatPattern.Edit
End If
Dim sOut As String
sOut = "FLAT PATTERN DXF?AcadVersion=2010&OuterProfileLayer=OUT PRO"
oCompDef.DataIO.WriteDataToFile( sOut, oDataMedium.FileName)
oCompDef.FlatPattern.ExitEdit
Catch
End Try

We use dxf's for lasercutting and would like to be able to bulk export sheetmetal flat patterns without any fold lines or etch markings, just inner profile and outer profile

 

 

thanks in advance 

 

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

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

Hi, try replacing the following lines of your code

 

Dim sOut As String
sOut =  "FLAT PATTERN DXF?AcadVersion=2010&RebaseGeometry=True&SimplifySpline=True&InteriorProfilesLayer=IV_INTERIOR_PROFILES&InvisibleLayers=IV_TANGENT;IV_BEND;IV_BEND_DOWN;IV_TOOL_CENTER_DOWN;IV_ARC_CENTERS;IV_FEATURE_PROFILES;IV_FEATURE_PROFILES_DOWN;IV_UNCONSUMED_SKETCHES;IV_ROLL_TANGENT;IV_ROLL&SplineToleranceDouble=0.01"

 I hope this helps with your problem. Regards


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Message 3 of 3

Anonymous
Not applicable

Hola Sergio, 

 

Thank you this solved my problem,

However I would like to be able to use our company custom config for dxf exports (it has the layers named and set up for the machinery we use) 

 

Is there any way to use this in somewhere? 

 

Gracias

Matt 

0 Likes