.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Draw Rectangle
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I want to draw a Rectangle in autocad Electrical using VB.net.
how to draw?Please send code for this.
Solved! Go to Solution.
Re: Draw Rectangle
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
download the ObjectARX-kit (>>>from here<<<), there are a lot of dot-net samples using draw-functions and also crreating polylines.
At least a rectangle is a polyline, nothing more.
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Draw Rectangle
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You can try this code as well:
C6309D9E0751D165D0934D0621DFF27919
Re: Draw Rectangle
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
As you may know, this is not a language-learning forum (except for obcure methods or structs).
Instead, we ask from other people the logic of how to do something with the AutoCAD object model.
If your question was: How to draw a rectangle?
The answer would be simple: Draw a polyline with four segments in the shape of a rectangle and then set the .Closed boolean property of the polyline to true.
That is exactly what AutoCAD does when you use the command RECTANG;
If your question is: How to draw a polyline? It should be already answered in other threads.
If you have trouble getting YOUR code to work, come back here, post your code and explain the desired behavior.
P.S. Hold on, did he just say AutoCAD Electrical? Does it use the same API as AutoCAD?
