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: 

Call a Function through DOCOMMAND

1 REPLY 1
Reply
Message 1 of 2
arnoldiW3K8A
553 Views, 1 Reply

Call a Function through DOCOMMAND

hello everyone,
i would like to execute a function call from a CALL containing variables, so i thought of using DOCOMMAND but to no avail,

can you help me please?

 

 

STRING $PF = "PALLET" + $PALLET
STRING $CALLF = "CALL " + $PF +" ($" + "hpiastra , $" + "larghrzzacava , $" + "dcanalestamp , $" + "riferimentocanalestamp)"
DOCOMMAND $CALLF

1 REPLY 1
Message 2 of 2
barr.jarryd
in reply to: arnoldiW3K8A

Because 'CALL' is in itself a command function, it cannot be paired together with strings like DOCOMMAND can.

 

Unfortunately you'll have to do a manual call, or build a sub-routine that iterates all the variables and acts like the function you are trying to DOCOMMAND.

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

Post to forums  

Technology Administrators