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

Newbie question

1 REPLY 1
Reply
Message 1 of 2
Anonymous
195 Views, 1 Reply

Newbie question

Apologies if this question was ask and anwered prevoiusly.

I'm busy writing something for ACAD 2007 using .NET 2005 express.
I'm still battling to decide which language to use. I know more about VB ,
but C# seems to be the language of choice for most peolpe.

I need code code to draw a polyline.
The part where the program prompts you for a start and end point I want to
replace with my own text.

This is my problem.
I want the program to start drawing the polyline before it ask you for the
end point.Almost like the build in line command in acad

Thanks in advance.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

If you call the Editor's GetPoint() method and specify
a Basepoint (via PromptPointOptions), then it will draw
a rubber-band line from the specified basepoint to the
cursor.

As far as the task of emulating the PLINE command,
with custom prompts, that's fairly involved (assuming
you want to support options like 'undo' of segments
and so forth, as you probably should).

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5578271@discussion.autodesk.com...
Apologies if this question was ask and anwered prevoiusly.

I'm busy writing something for ACAD 2007 using .NET 2005 express.
I'm still battling to decide which language to use. I know more about VB ,
but C# seems to be the language of choice for most peolpe.

I need code code to draw a polyline.
The part where the program prompts you for a start and end point I want to
replace with my own text.

This is my problem.
I want the program to start drawing the polyline before it ask you for the
end point.Almost like the build in line command in acad

Thanks in advance.

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