.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use AlternateBasePoint in grip overrule?

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
385 Views, 3 Replies

How to use AlternateBasePoint in grip overrule?

Hi,

When I try use AlternateBasePoint in my class MyGripOverrule : GripOverrule {...,  

 

public override void GetGripPoints(...){
...
grips.Add(new MyGrip(){
    GripPoint = new Point3d(5,0,0),
    AlternateBasePoint = new Point3d(10,0,0),
}
...

 

I get always AlternateBasePoint =  Point3d(0,0,0)?   Why?

 

Thanks!

3 REPLIES 3
Message 2 of 4
fieldguy
in reply to: Anonymous

Just guessing - you have an extra comma after AlternateBasePoint = new Point3d(10,0,0),

 

I'll bet that C# interprets that as a missing parameter

Message 3 of 4
Anonymous
in reply to: fieldguy

Unfortunaly, comma doesn't influence on the result.

Message 4 of 4
prmduarte
in reply to: Anonymous

This is 2022, and 7 years later I still have the same problem, this is the code:

 

CustomGripData grip; //extends GripData

grip = new CustomGripData();
grip.AlternateBasePoint = new Point3d(5.0, 0.0, 0.0);

// at this point if you read grip.AlternateBasePoint it says {(2.8567367949313E-312,6.9519327022869E-310,1.11594791398818E-311)}

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost