iLogic NEED TO SAVE SHEET METAL FLAT PATTERN AS .DXF

iLogic NEED TO SAVE SHEET METAL FLAT PATTERN AS .DXF

Anonymous
Not applicable
1,240 Views
2 Replies
Message 1 of 3

iLogic NEED TO SAVE SHEET METAL FLAT PATTERN AS .DXF

Anonymous
Not applicable

Hi.

 

My question about saving files in folders based on filename is solved thank you.

 

But i missed one thing.

I need to export my sheet metal part to a flat pattern dxf. Just save as .dxf does not do the job.

Of course it would be great if my flatpattern.xml could be user also.

 

For now my save scrip look like this for .dxf.

 

 

SyntaxEditor Code Snippet

Sub Main()
    strFolder = "C:\Users\lelo\AppData\Local\Autodesk\Autodesk Sync\Cloud\lennart.losjo\Part Drawings\"& ThisDoc.FileName(False)
    oSaveNameWOExtension = GetFolder(strFolder)    & "\" & ThisDoc.FileName(False)

     ThisDoc.Document.SaveAs(oSaveNameWOExtension & ".dxf", True)

End Sub

Function GetFolder(ostr) As String
    If(Not System.IO.Directory.Exists(ostr)) Then 
        System.IO.Directory.CreateDirectory(ostr) 
    End If
    Return ostr
End Function

 

Thanks in advance. 

0 Likes
1,241 Views
2 Replies
Replies (2)
Message 2 of 3

tolgay.hickiran
Advisor
Advisor
There are a ton of flat pattern dxf codes in this forum, this is just on of them https://forums.autodesk.com/t5/inventor-customization/ilogic-rule-to-ask-yes-or-no-for-dxf-export-wh...

Some worthwhile ideas
Copy Design should rename ilogic Rules too!
Why Nastran In-CAD doesn't have an SDK?IMPLEMENTED!

Tolgay Hickiran
Founding Partner
SignatureSignature

website
emailskypelinkedinyoutubeemail

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi.

Thank you for the answer.

Yes there are many dxf codes, but i dont know how to combine them into my other code, the one i attached in my post.

 

//Lennart

0 Likes