×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

save as flat....(DXF) is producing an empty file

save as flat....(DXF) is producing an empty file

save as flat....(DXF) is producing an empty file

(OP)
Thanks to fellow member ailuJ and previous thread562-33964

I've tailored the following code to gain a DXF file, however the DXF file created is empty of any lines. I'm running the code as a vb exe within Solid Edge with the sheet metal part already open. Can anybody please help?


Public objApp As SolidEdgeFramework.Application

Set objApp = GetObject(, "SolidEdge.Application")
   Dim objFoldedDoc As SolidEdgePart.SheetMetalDocument
       
    Dim cActDocType As DocumentTypeConstants
    cActDocType = objApp.ActiveDocumentType
    
    If cActDocType = igSheetMetalDocument Then
        Set objFoldedDoc = objApp.ActiveDocument
    Else
        Exit Sub
    End If

    objFoldedDoc.SaveAs "c:\test.dxf"
    

RE: save as flat....(DXF) is producing an empty file

Hi,

You can't save a sheet metal part as a DXF file. Check File/Save As you will see Save As Type doesn't provide dxf.

I guess you perhaps intended to save the Flat Pattern as DXF, which matches File/Save as Flat. If so, you would need to call function SaveAsFlatDXF, which is a member of SolidEdgePart.Models.

objFoldedDoc.Models.SaveFlatAsDXF(FileName As String, Face As Object, Edge As Object, Vertex As Object)

You will need to identify a planar face as the reference face, an edge which aligns to the x-axis in the flat pattern, and a vertex which matchs the original point in the flat patter.

I guess this function will work even with NULL edge and vertex.

RE: save as flat....(DXF) is producing an empty file

Hi,

IMHO that will not work. Have a look into the sample

C:\Program Files\Solid Edge Vxx\Custom\GandT
(xx your SE version)

how to flatten a part. The GandT will flatten the part in the
x/y plane. And when you go this way you may use the

call objFlatDoc.Models.SaveAsFlatDxf(...)

to save the flattened part. But still then you are left with the
task to supply all the required arguments to the method ...

dy

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources