drawing object using 'sendcommand'
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
drawing object using 'sendcommand'

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
kanyaraj



Joined: 12 Nov 2005
Posts: 1

Posted: Sat Nov 12, 2005 7:52 am    Post subject: drawing object using 'sendcommand' Reply with quote

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

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB