Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me with a SKILL code that should place rectangle shape

Status
Not open for further replies.

cowboy

Newbie level 1
Joined
Jun 17, 2004
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
8
dbmovefig

Below is a copy of some code, the 1st section creates a rectangle shape and assigns a id, in the 2nd section I'm trying to place and rotate it.

It works, hower,for some reason it places it high (higher than the 0 axis)
I've starred at it long enough, any ideas ?

rect1 = dbCreateRect(
cv
list(level type)
list( offsetvalue:0
offsetvalue+gr_width:snapHi(gr_value/gr_width grid)) )



dbMoveFig(rect1~>dbId, nil, list(offsetvalue:0 "R90"))
 

SKILL help

Hi cowboy,

Use
dbMoveFig(rect1, nil, list(offsetvalue:-offsetvalue "R90"))
will solve problem.
The reson is dbMoveFig will rotate the fig around the origin first, then offset it.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top