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

Macro Entering text into curve editor programatically

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
852 Views, 2 Replies

Macro Entering text into curve editor programatically

Greetings all. Can anyone point me to a direction to programatically  enter text into the curve editor text dialog?

 

CURVEEDITOR TEXT SET_TEXT "\F !\C!4\H )\S 4\B  \I  \U  put my text here"

 

Any thoughts?

 

-Joe S.

2 REPLIES 2
Message 2 of 3
tibor.vekasi
in reply to: Anonymous

IF NOT entity_exists('pattern','') {
 RETURN
}
STRING p=entity('pattern','').Name
STRING t=Input 'Text?'
$t='CURVEEDITOR TEXT SET_TEXT "\F \C!4\H ]\S \B \I \U '+$t+'"'
ACTIVATE Pattern $p
EDIT PATTERN $p CURVEEDITOR NOGUI START
CURVEEDITOR MODE TEXT_HORIZONTAL
MODE COORDINPUT COORDINATES 0 0 0
DoCommand $t
CURVEEDITOR TEXT FINISH
CURVEEDITOR FINISH ACCEPT

Message 3 of 3
Anonymous
in reply to: tibor.vekasi

Awesome! Thanks!

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

Post to forums  

Autodesk Design & Make Report