Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Addin - PostPword

Anonymous

Addin - PostPword

Anonymous
No aplicable

Hey guys, I just built my own Addin but now I´m hanging on a Problem I can´t solve.

 

Target of that Addin is to include our own written Cycles in FeatureCAM as an UDF with all the things a normal Feature does like creating toolpaths in the simulation and so on.

 

My addin does everything I need expect posting  Variables to my Post. -> Here I need the Variables from the Addin to fill in my Cycle in my Custom Format.

 

I tried the following command in the toolpath section:

Doc.SetAttribute(eAID_PostPword xxx )

 

Unfortunately this command seems to have a problem with the command:

Add.CallCustomFormat( xxx )

 

The simulation runs fine but I don´t get a NC code.

 

Is there something I need to know about the two commands? The API help wasn´t helpfull here...

 

 

Thank you in advance, sorry for my bad English :cara_sonriente_con_la_boca_abierta:

0 Me gusta
Responder
229 Vistas
1 Respuesta
Respuesta (1)

Anonymous
No aplicable

Okay it looks like Postvariables can only be posted in the Verify Sub.

 

But now i wants to post the Position of the Feature.

 

I get the position with the command: GetFeatureLocation(eFLT_xyz,x_pos,y_pos,z_pos.....) and wants to post them to my Post.

 

The Problem is when I change the position of my feature while creating the feature, the "GetFeatureLocation" gives me the wrong values in my postvariables.

 

After unchecking the Feature in the Feature tree and reactivation, posting the nc-code, the positions in my nc-code are correct. Now when I go back into my feature and changing the position again, all my Positions in my nc-code are doubled?!    O.o

 

Anyone here can help me?  I can´t find a solution for this. Sure I can get the position in a different sub but i only can post the variables in the verify sub???

 

I´ve also tried using x-coord, y-coord and z-coord in my nc-code but every single time i pick a position for my feature, the z-coord in my nc-code is somehow lost.

 

Also here, after transforming the feature all values are correct.

 

Pretty hard to understand if you ask me...

 

Thanks

0 Me gusta