VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extrude block using the length of a line

2 REPLIES 2
Reply
Message 1 of 3
dm_salamania
458 Views, 2 Replies

Extrude block using the length of a line

Good day to all AUTOCAD VBA MASTER

 

 

 

Bad news I'm a new in VBA ( So please help me to finish this project)

 

i have a block in model space and a single line.

 

question: How i can extrude this block?, the height of extrusion is the length of the line?

 

Using VBA

 

Please if can provide sample form and codes

thank you very much

 

 

2 REPLIES 2
Message 2 of 3
norman.yuan
in reply to: dm_salamania

Extruding a entity (line, circle...) is to create an AcadExtrudedSurface.

 

In your case, I'd imagine that you need to extrude all the entity in the block definition, thus all the block references to that block definition would be updated afterward.

 

However, it is unfornate that there is not way via AutoCAD's COM API to create AcadSurface and AcadExtrudedSurface, thus, you cannot archieve your goal with VBA code.

 

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3
dm_salamania
in reply to: dm_salamania

Thank you for your reply

 

I think i need to use other techniques

 

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

Post to forums  

Autodesk Design & Make Report

”Boost