Create rectangle of detail lines by drawing with api

Create rectangle of detail lines by drawing with api

hossam.amer666
Enthusiast Enthusiast
352 次查看
1 条回复
1 条消息(共 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 个赞
353 次查看
1 条回复
回复 (1)
2 条消息(共 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 个赞