• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

insert a newly generated solid into a block

  • Thread starter Thread starter vigadario
  • Start date Start date

vigadario

Guest
hello to all, I am new of the group; autocad use mainly to detect measurements for architectural computation and to draw in 2d. on some occasions I have to draw in 3d

I have created with vba (I know enough from msoffice) of the routines that generate solids "gift index" for extrusion with
"set solidbj = thisdrawing.modelspace. addextrudedsolidalongpath(regionobj(0), polyobj)"
I can't always enter these solids from code in a block without having to manually select them; I've been trying for 5 days, but I can't do it.
I found an example that allows me to do it with 2d elements but I can not adapt it for solids
Can you help me?

Thank you.
 
it costsato la soluzione

dim solidarity as acad3dsolid
dim blockobj as acadblock
dim polyobj and acadentity
dim regionobj and variant
set of solidarity = blockobj. addextrudedsolidalongpath(regionobj(0), polyobj)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top