breaking polylines
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
breaking polylines

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





Posted: Thu Dec 16, 2004 2:38 pm    Post subject: breaking polylines Reply with quote

There is quite abit about this on the messages, but i am abit stuck. I found this:

finally, use sendcommand to send the following statement:
(command "_.break" (handent <<handle>>) "f" <<point>> @ "")


Now, if I have an AcadObject (call it ent) and I have a point, call it breakPnt, how do I put those into a string as above to pass to SendCommand?

I don't know how to do the handent <<handle>> and <<point>> bits in building the string.

In lisp I did:

(command "break" e "f" pt pt)

But VBA?

Back to top
Alfred NESWADBA
Guest





Posted: Thu Dec 16, 2004 3:42 pm    Post subject: Re: breaking polylines Reply with quote

In article <16219183.1103189913098.JavaMail.jive@jiveforum1.autodesk.com>, nospam@address.withheld says...
Quote:
There is quite abit about this on the messages, but i am abit stuck. I found this:

finally, use sendcommand to send the following statement:
(command "_.break" (handent <<handle>>) "f" <<point>> @ "")


Now, if I have an AcadObject (call it ent) and I have a point, call it breakPnt, how do I put those into a string as above to pass to SendCommand?

I don't know how to do the handent <<handle>> and <<point>> bits in building the string.

In lisp I did:

(command "break" e "f" pt pt)

But VBA?

hi,


if you are in wcs then

dim tPtStr as String
tPtStr = replace(point(0),",",".") & "," & replace(point(1),",",".")

- alfred -
Back to top
ajtruckle
Guest





Posted: Mon Dec 20, 2004 12:45 pm    Post subject: Re: breaking polylines Reply with quote

Is it possible for you to build this as sample code for me? The whole string...? I have seen your other posts to me related to this.

Andrew

Back to top
 
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