AnsweredAssumed Answered

PADS Layout macro problem

Question asked by rdziendziel on Jan 7, 2011
Latest reply on Dec 6, 2011 by daniel74

Greetings.

I'm trying to make a tricky PADS Layout macro, that draws a polyline based on variables.

For example:

 

x=0

y=0

Application.ExecuteCommand("Add 2D Line Polyline")
Application.ExecuteCommand("Drafting Path Mode")
Application.ExecuteCommand("Add Corner To Drafting", 0mil, 0mil)

x=x+5

y=y+10

xm=x&"mil"

ym=y&"mil"

Application.ExecuteCommand("Add Corner To Drafting", xm,ym)

 

[...]

 

Application.ExecuteCommand("Complete Drafting")
Application.ExecuteCommand("Select Mode")

 

Unfortunately, it doesn't work. What's the proper type of a variable, that can be passed to Application.ExecuteCommand() ?

I haven't found any section in the reference maual, that covers this issue.

Outcomes