C# API for Plant 3D: How to create Support EntityJig that makes Length Adjustment follow the cursor?

joseph.sarmiento.m5
Contributor

C# API for Plant 3D: How to create Support EntityJig that makes Length Adjustment follow the cursor?

joseph.sarmiento.m5
Contributor
Contributor

I have created a support in Python and am using SupportHelper to place it.

I need assistance with an EntityJig that can automatically adjust the graphics of the support.

 

For example, when I click the first point in the workspace, the graphics should dynamically change as I move my mouse cursor. It should automatically adjust the length based on the distance between the first point and my cursor.

0 Likes
Reply
425 Views
5 Replies
Replies (5)

jflorita
Advocate
Advocate

You can achieve that by adding setLinearDimension ()  

jflorita_0-1693550331166.png

 

 

joseph.sarmiento.m5
Contributor
Contributor

can you give c# example how to do that?

0 Likes

jflorita
Advocate
Advocate

You can add it on your python script, I'm not pretty good at explaining it but you can play with it on your script.

 

jflorita_2-1693552637502.png

 

 

joseph.sarmiento.m5
Contributor
Contributor

Thank you for your efforts.

 

What I'm looking for is the C# API EntityJig, similar to SuppDragPoint and SuppDragAngle provided in the SDK. SuppDragPoint holds the object in the cursor, and SuppDragAngle provides real-time visual feedback for custom support, where the angle represents the direction.

 

I believe the requirement I'm looking for can be accomplished through the C# API.

When I click the first point in the workspace, the graphics should dynamically change as I move my mouse cursor, automatically adjusting the length based on the distance between the first point and my cursor.

h_eger
Mentor
Mentor

Dear @joseph.sarmiento.m5 ,

 

and I know from experience that from C# and SDK AutoCAD Plant 3D no direct access to the Python construction variants is possible when inserting the objects into a Plant 3D model.
The mofication always takes place in the post process.
This is due to the graphical representation and the not yet available hardware to implement this on demand.

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



Type a product name