create a solid as defined using programming

create a solid as defined using programming

Anonymous
Not applicable
356 Views
2 Replies
Message 1 of 3

create a solid as defined using programming

Anonymous
Not applicable
hi..
i would like to know whether it is possible to create a box at point on
other object( say center of a face of cylinder), that is predefined...
and i want to align(or move) the end of this newly created box to other
soild(that is already present). all this should happen at the run time
with out any user input.

so ultimately i want to create a solid that varies in size according to
the requirement..whose top and bottom portions never change and only
the middle inserted box length changes (say from 0 to L)...
hpoe i am making some sense in defining the problem..
can i do it with VBA or arx ..i am comfortable at VBA.. if it can do
this..
thanks for all who cares ...
waiting for ingenious replies
thanks again
Asty
0 Likes
357 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Asty,
ModelSpace Collection use Add(SOMETHING)Method, e.g.
...
Dim myCylinder As Acad3DSolid
Dim center As Variant 'center of bounding box !!!
Dim radius As Double 'radius of cylinder
Dim height As Double 'height of cylinder

Set myCylinder = ThisDrawing.ModelSpace.AddCylinder(center,radius,height)
...
Next , Acad3DSolid use Methods (Move,Rotate,TransformBy)
e.g.
...
myCylinder.Move fromPoint, to Point
...

Hoping it helps
jfk
0 Likes
Message 3 of 3

Anonymous
Not applicable
thanks.
but my problem is unfortunately a little more complex.
now tat i create a solid, i have to move that solid to the center of a circle( that alredy exists). with out promt to select point.
then do the union operation of the both objects(solid that is created and the circle). In fact it is not jus a circle but it is some other object that has a circle at one corner..now i have to make them both one object( either by union or other methods) then i should reuse the old object ( that has circle at one corner) to re create solid and do the same operation for different lengths of the sollid box each time.
sorry if i am confusing..
thanks
Asty
0 Likes