Create rectangle of detail lines by drawing with api

Create rectangle of detail lines by drawing with api

hossam.amer666
Enthusiast Enthusiast
349 Views
1 Reply
Message 1 of 2

Create rectangle of detail lines by drawing with api

hossam.amer666
Enthusiast
Enthusiast

Hello all,

My question is : I want to make a button when is clicked it makes me able to draw rectangle of detail lines and these curves are stored so I can reuse them in my logic.

Any help ?

IMG_20211023_232448.jpg

 

0 Likes
350 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor

Break the task down into steps and research what API functionality you need for each step i.e.

 

Adding interface elements: UIControlledApplication members.

Picking points of rectangle: UI.Selection.PickedBox

Storing detail lines: ExtensibleStorage.

 

What needs to be stored:

Point1 (XYZ), Point2 (XYZ), RectangleReferenceDirection (XYZ), GraphicsStyleId (ElementId)

 

 

0 Likes