.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How could I prompt a line entity from the user?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
dynamicscope
351 Views, 1 Reply

How could I prompt a line entity from the user?

How could I prompt a "two points" line entity from the user?

Something similar to " Editor.GetPoint() " ??

 

I was trying to use Editor.GetPoint() method two times. But this option does not show the preview of a line.

I also tried a combination of

 

doc.SendStringToExecute("line ");

db.ObjectAppended += new ObjectEventHandler(LineAppended);

 

but this option triggers LineAppended event handler as soon as I create the first point of a line. So it does not help.

 

Would there be a better way?

1 REPLY 1
Message 2 of 2
Jeff_M
in reply to: dynamicscope

Look at the PromptPointOptions. It allows you to specify a Basepoint, and whether to use it, so you get the drag line when picking a second point.

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost