Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
437 Views, 2 Replies

iLogic - sheetmetal export config

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 

 

Sergio.D.Suárez
in reply to: Anonymous

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

Anonymous
in reply to: Sergio.D.Suárez

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