autolisp 2D to 3D drawing

autolisp 2D to 3D drawing

Tolearnlisp
Enthusiast Enthusiast
1,376 Views
5 Replies
Message 1 of 6

autolisp 2D to 3D drawing

Tolearnlisp
Enthusiast
Enthusiast

Hey Everyone,

Is possible for a LISP to create auto 3D drawing by selecting just the top view and side view (2d polyline) then it will will automatically create the 3D solid (intersect command). Please see attached drawing for your reference. Thank you.

0 Likes
1,377 Views
5 Replies
Replies (5)
Message 2 of 6

Jonathan3891
Advisor
Advisor

Do you know about the "EXTRUDE" command?


Jonathan Norton
Blog | Linkedin
0 Likes
Message 3 of 6

Tolearnlisp
Enthusiast
Enthusiast

Hi @Jonathan3891 ,

Thanks. I know the extrude command then followed by intersect command to make the 3D drawing. I just want get any possibility to make this procedure simple and fast through LISP. Thanks.

0 Likes
Message 4 of 6

Sea-Haven
Mentor
Mentor

You could really only do pick object plan, pick a 2pts, dim or text for extrude. Saves a bit of time. Better to draw in 3d 1st and take advantage of view directions etc.

0 Likes
Message 5 of 6

Tolearnlisp
Enthusiast
Enthusiast

Hi @Sea-Haven,

I'm just a bit confused on your reply, could you explain it more. Better to show illustration if possible. Thanks

 

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

I changed my post but timed out.

 

Ok if you make the section a 3 solid the correct plan view length.

 

Take the plan view and add a outer pline make a "Cutter" from the two pline shapes subtract the inner plan view shape so you have like a punch and die. 

 

Use rotate3d to rotate the section about X axis, make sure its min Z is at least at say 0.0 you need to move it so it has a common lowest Y value.

 

Then subtract the cutter should be the 3d shape you want.

 

Just practice on solids basics.

 

Then subtract the outer shape 

 

So its a case of working out the steps, using vl-bounding box will help working out the max min values.

0 Likes