Dynamic Input for GripOverrule

Dynamic Input for GripOverrule

Civil3DReminders_com
Mentor Mentor
1,022 Views
3 Replies
Message 1 of 4

Dynamic Input for GripOverrule

Civil3DReminders_com
Mentor
Mentor

So I'm using the code modified from this blog post from ADN to add grips to a AutoCAD CIvil 3D Profile View. Everthing works great except I want the user to be able to type in the Elevation or Station value of what the station or elevation of the grip should be after the change. Here is the current code in action: screencast.com/t/8ZSE4gNcPQ I want to replace the AutoCAD default option to show me the distance and angle with a dynamic input box to enter either the station or elevation values. I'm not quite sure where to put the code or what to put in there. The documentation on the GripData seems a bit sparse. 

 

I'm guessing it should be put in  

public override ReturnValue OnHotGrip(ObjectId entityId, Context contextFlags)
{
     return base.OnHotGrip(entityId, contextFlags);
}

but not quite sure what to put in there. Searching on line hasn't been too successful in finding information on how to get AutoCAD to show the info.

 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
0 Likes
1,023 Views
3 Replies
Replies (3)
Message 2 of 4

Balaji_Ram
Alumni
Alumni

Hello,

 

The grip sample from the ObjectARX SDK implements a dynamic dimension while jigging a custom entity.

It should help in understanding all that is needed for getting dynamic dynamensions to show up.

 

But I am not sure if the same will work with grip overrule for a native entity.

 

I am working on it and will get back to you soon.

 

Thanks for your patience.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Balaji_Ram
Alumni
Alumni

Hi,

 

Here is a blog post that can help use GripOverrule for changing the dynamic dimensions during grip editing.

 

http://adndevblog.typepad.com/autocad/2015/06/dynamic-dimension-using-gripoverrule.html

 

I have used C++ in that blog post, but the same should also be doable using .Net API.

 

Regards,

Balaji

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 4

redtransitconsultants
Collaborator
Collaborator

I don't have any answers, but will say what you have there is a great addition to Profile Views.

Steve Hill,Civil Designer / .NET Developer / AutoCAD and AutoCAD Civil 3D Certified Professional
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

http://redtransitconsultants.com/
Autodesk Exchange Store
Twitter | LinkedIn | YouTube

0 Likes