API - hole setPositionByPlaneAndOffsets - bug(?)

API - hole setPositionByPlaneAndOffsets - bug(?)

pludikar
Collaborator Collaborator
7,708 Views
40 Replies
Message 1 of 41

API - hole setPositionByPlaneAndOffsets - bug(?)

pludikar
Collaborator
Collaborator

Repost - Apologies - I accidently posted this in the API forum (here)

 

I'm trying to set the location of a hole a fixed distance from 2 sides of a corner, using 

returnValue = holeFeatureInput_var.setPositionByPlaneAndOffsets(planarEntity, point, edgeOne, offsetOne, edgeTwo, offsetTwo) 

 

I can get this to work as expected on an occurrence, but when the Occurrence has either been moved (with position capture) or is located via a join, then the direction of the two offsets appear to be unpredictable.  This results in the hole being placed in the wrong quadrant, but depends on the actual location of the corner.

 

I have definitely placed the initial guess position (point) correctly, and the final hole center should be exactly on the guess point - so the positioning algorithm should resolve to an immediate solution.  I created a sketch and visually confirmed that the location of the initial guess point is where I expected it to be.  Both offsets are the same and positive.  Hole centers on unmoved, and non-joined occurrences are also exactly where I expected them to be - on the sketch point.

 

I suspect this is a bug.  If it isn't, could you provide a code example based on occurrences.

 

Thanks

I'm not an expert, but I know enough to be very, very dangerous.

Life long R&D Engineer (retired after 30+ years in Military Communications, Aerospace Robotics and Transport Automation).
7,709 Views
40 Replies
Replies (40)
Message 41 of 41

rhudaynath
Autodesk
Autodesk

Hi @pludikar

We are glad to mention the selection issue with Hole Extent option has been addressed and will be part of next update.
We will look into API related issues.

Thank you,
Rhudaynath  



Rhudaynath

Software Engineer
0 Likes