How to set to use swe #677
Unanswered
Window-Line
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You have to create the I general you can not create ACIS based entities with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to use swept_surface?
I want to make pipe line using circle(ct) and pathway line(l1).
import ezdxf
from ezdxf.math import OCS, UCS, Vec3
import math
from ezdxf.entities import ExtrudedSurface
doc = ezdxf.new('R2010')
msp = doc.modelspace()
ucs = UCS(origin=(0, 0, 0)).rotate_local_x(math.radians(-60))
l1=msp.add_line(start=(0,3,1), end = (0.4,1),dxfattribs={'color': 1}, ).transform(ucs.matrix)
ct=msp.add_circle(center=(0,3,1), radius=2, dxfattribs={'color': 1}, ).transform(ucs.matrix)
cx=msp.add_swept_surface(dxfattribs={'color': 6})
cx.dxf.swept_entity_id=33
cx.dxf.path_entity_id=32
doc.saveas("meshes2.dxf")
Beta Was this translation helpful? Give feedback.
All reactions