Community
PowerShape and PowerMill API Forum
Welcome to Autodesk’s PowerShape and PowerMill API Forums. Share your knowledge, ask questions, and explore popular API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I get the blocksize/MaxX/MinX... thank you very much.

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
886 Views, 6 Replies

How do I get the blocksize/MaxX/MinX... thank you very much.

How do I get the blocksize/MaxX/MinX... thank you very much.

6 REPLIES 6
Message 2 of 7
luke.edwards.autodesk
in reply to: Anonymous

Hi, do you just want the bounding box of a toolpath's Block?


Luke Edwards
Consulting Services Manager
Message 3 of 7
Anonymous
in reply to: luke.edwards.autodesk

the code I used in VB6 is pmill.blocksize(zmax). I want turn it to VB.Net 2015, thank you for answering.

Message 4 of 7

Hi,

 

How do I get the blocksize/MaxX/MinX... a block,by using API, i use vb.net and C#

Message 5 of 7

You should be able to use:

var blockBoundingBox = powerMill.ActiveProject.GetBlockLimits();

You then have access to MinX, MaxX etc on the bounding box object.

 

Luke


Luke Edwards
Consulting Services Manager
Message 6 of 7

Thank you very much

Message 7 of 7
LAV_PERM77
in reply to: Anonymous

How to get the billet size specified in SETUP via the API.

OBJ_.STOCK.Limits.XMax

So, I'm calling using  macro

I tried pM.ActiveProject.GetBlockLimits(); The method returns a block of the active toolpatch.

But I don't know how to reach the SETUP block or the notes.

LAV_PERM77_0-1704286528226.png

LAV_PERM77_1-1704286574247.png

 

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

Post to forums  

Technology Administrators