Home > Community > Forums > Custom IC SKILL > Setting the position of a db or rod object

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Setting the position of a db or rod object 

Last post Thu, Mar 26 2009 8:34 AM by Austin CAD Guy. 2 replies.
Started by gsimard 25 Mar 2009 06:15 PM. Topic has 2 replies and 1207 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Mar 25 2009 6:15 PM

    • gsimard
    • Top 500 Contributor
    • Joined on Fri, Mar 20 2009
    • Posts 21
    • Points 465
    Setting the position of a db or rod object Reply

    Hello,

     

    I am trying to set manually the position of a rod or db object, without using rodAlign. It is possible to read the position of the objet by retrieving the translation part of the transform like this:

    (car (rodGetObj "P1")~>transform)

    It's also possible to access this property from the dbId in the same way.

     However, I couldn't manage to write to this place yet, any hint ? The object is already created so the initial control over it's position is not a possibility.

     

    Thank you,

    Guillaume

    • Post Points: 35
  • Thu, Mar 26 2009 6:40 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 394
    • Points 7,420
    Re: Setting the position of a db or rod object Reply

    You can set this information using the xy attribute for an instance. If rodObjId is the variable containing your rod object:

    rodObjId~>dbId~>xy = list(0 0)

    This will move the instance to 0:0.

     Derek

     

    • Post Points: 5
  • Thu, Mar 26 2009 8:34 AM

    Re: Setting the position of a db or rod object Reply

     There is an attribute on each database object which describes where it is. These can be written to, other attributes, such as transform cannot as they are compounds of existing attributes.

    The attributes of the design objects are described in the Virtuoso Design Environment SKILL Reference. It also lists whether the attribute can be modified directly.

    ROD objects refer to database objects as you have found. You can manipulate the underlying database object without breaking the ROD connection.

    Ted

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by gsimard at 25 Mar 2009 06:15 PM. Topic has 2 replies.