- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm testing the new "Mark" command in Inventor 2023. I try to export a flat pattern with the following code:
Dim doc As PartDocument = ThisDoc.Document Dim oCompDef As SheetMetalComponentDefinition = doc.ComponentDefinition If oCompDef.HasFlatPattern = False Then oCompDef.Unfold() Else oCompDef.FlatPattern.Edit() End If Dim fileName As String = "C:\temp\test.dxf" If (IO.File.Exists(fileName)) Then IO.File.Delete(fileName) End If Dim sOut As String = "FLAT PATTERN DXF?AcadVersion=2000&MarkSurfaceBackLayer=qwert" oCompDef.DataIO.WriteDataToFile(sOut, fileName) oCompDef.FlatPattern.ExitEdit()
That works as expected but the Mark layer does not change to the new name (here qwert). Probably I use the wrong argument. I checked the help files (here) but I guess those are not updated yet. Also, I guessed a couple of names but the argument seems not to follow the same naming conversion as the other argument names. Did someone already use this new feature and knows which arguments to use to change the mark layer name?
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
Solved! Go to Solution.