kanyaraj
Joined: 12 Nov 2005
Posts: 1
|
Posted:
Sat Nov 12, 2005 7:52 am Post subject:
drawing object using 'sendcommand' |
|
|
Hello everyone,
I am using VB for writing code for CAD drawings
i have drawn an arc in VB using 'Sendcommand'. The command is as below.
-------------------------------------------------------------------------------------
dim acaddoc as acaddocument
acaddoc.SendCommand "_arc" &vbcr &2,3,4" & vbcr & "5,7" & vbcr & "12,10" & vbcr
-------------------------------------------------------------------------------------
This command is working and giving the output arc
but if i want to change the properties or delete it or do any operation on it during runtime, how is it possible
For eg if line1 is any acadline, then we can use the properties of line as color,endpoint,startpoing,mirror,delete,copy,move etc...... as follows
-------------------------------------------------------------------------------------
dim line1 as acadline
set line1=acaddoc.modelspace.addline(stpt,endpt)
line1.color=acred
line1.visible=true
line1.highlight(true)
-------------------------------------------------------------------------------------
if i want to use the same properties for an arc which is drawn using sendcommand how is it possible
Is there any one to help me
thanks in before hand
bye
|
|