Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slicing body, projecting and exporting as DXF

3 REPLIES 3
Reply
Message 1 of 4
lukasz_krzewicki
492 Views, 3 Replies

Slicing body, projecting and exporting as DXF

Hello!

Would anyone write for me a script that would create offset plane, slice a body and project that to a sketch and then export it to DXF?
Or anyone could help me code that?

Right now I'm doing it manually and it takes me hours, because I'm slicing big body to thin elements.
I can't code, if I could I would do that myself.
I would be very, very grateful for any help.

3 REPLIES 3
Message 2 of 4
Message 3 of 4

Yes I tried it. I still want to make changes to the model and render it. With slicer I can only stack slices. I want to control the distance between slices and thickness of them.
https://a360.co/367EUa7

Message 4 of 4

Hi lukasz_krzewicki.

 

I was interested in making a script.Because it takes time and effort, it is created with userInterface.selectEntity without creating a dialog.

 

Any number of slices based on the specified guide curve
Create at regular intervals and export with DXF.

 

After running the script
・Solid body selection
 ↓
・Select a curve to serve as a guide
  (Sketch curve or edge)
 ↓
・Number of slices
  (In fact, since the start point and end point are added, +2 will be added)
 ↓
・Finally, select the folder to export the DXF file.

 

The exported DXF file name is a ratio to the guide curve length.

Sketches whose slices have not been created will not be exported as DXF files.

 

Also, by setting “TEMPITEMDELETE =” near the top to True, the plane and sketch used for slicing are deleted and the script ends.

1.png

 

This is the behavior of TEMPITEMDELETE = False.

 

Attach a script file.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report