Accessory Layout - Attribute For Parent

7 posts / 0 new
Last post
#1 Accessory Layout - Attribute For Parent

I would like to display the Tag value of the parent of an accessory, but on the layout for the accessory.  Somewhat similar to what is found in https://my.skycad.ca/forums/got-question-got-issue/creating-components-l....

In particular, this is to show a relay's tag number in the layout for its base. Relay is main component, base is the accessory with the layout.

Can you provide the query string?

Thanks in advance.

<r:Parent.Parent.Parent.Tag>

Thanks for posting on the forum.

What you need to do is open the layout of the accessory, then insert a text via the Drawing tab and copy/paste the following into the Value cell:

<r:Parent.Parent.Parent.Tag>

Please let us know if this helps.

Perfect Again

That works.

A side question.  When I make an edit like that, is there a way other than closing and opening SkyCAD to get everything to refresh with the change and show values.

The next question I have is whether there is any harm in not adding the Layout for the relay in this case, and thus using the attribute display we just discussed instead?  It just takes a long time to line up the relay with the base.  Or is there a way to automatically include and line up a parent with its accessory when the accessory is put on the layout page.  In this case, relay with relay base.  Just looking for efficiency and completeness so I can train others but not leave things undone causing operator error.  If that makes sense.

Last question for tonight.  I have been labeling the terminal blocks in the layout with query strings for the terminal number and have had good success so far.  However, I have not been able to determine the query string for an End Stop to display the TS# for the strip.  Can you please provide this.  Any hints or sources to help me figure this out would be appreciated.

Great

Thanks for letting us know that helped.

A side question.  When I make an edit like that, is there a way other than closing and opening SkyCAD to get everything to refresh with the change and show values.
The only other way is to select those parts used in your projects and Assign from catalogue again.

The next question I have is whether there is any harm in not adding the Layout for the relay in this case, and thus using the attribute display we just discussed instead?
No, there is no harm in doing that. As long as you're OK with the panel layout looking like that.

Or is there a way to automatically include and line up a parent with its accessory when the accessory is put on the layout page.
Try this:

  1. Open the layout of the relay
  2. Go to the Layout Tools tab and select Layout Element
  3. Choose the accessory and lay it out
  4. Move it into position. You will probably also need to use Send to back via the Drawing tab to put the base behind the relay.
  5. Now, select the relay from the tree view and Save it to catalogue.

This will make it so whenever you add this relay to a project, it will already include the accessory, and the relay will already be laid out on the base.
Then, going to your backplate layout, you just need to lay out the relay, and the base will automatically be attached.

However, I have not been able to determine the query string for an End Stop to display the TS# for the strip.
If you open the End Stop layout and add a text with the value below, it will display the TS name.

<r:Parent.Parent.Parent.Name>

Please let us know if this helps.

Thanks again

Jeff,

I have to say, working with the query fields has been a challenge trying to guess sometimes - and then I have to ask for help (and I fully understand because of the unique architecture - been doing things like this with databases for a long time) but, I now have a very nice depiction of things on my schematics and layouts using these queries.  This takes a lot of the old AutoCAD manual work completely out of the picture.  I really appreciate all your help with this.

Having all my terminals, fuses, end stops, etc. automatically labeled on the layouts is very very helpful.  We provide support all the time with our clients on the phone after our equipment is installed and this surely makes it easy for troubleshooting and directing someone to the right fuse, etc.

I will obviously have more things to tweak, but we are getting there fast.  Great software.  Keep it up!

Attached are some samples.

Image: 
More

More

Image: 
Thank you!

Thank you for taking the time to let us know about that!

We're glad it is working well for you.

Tip: Here's a trick I like to use sometimes when I'm trying to find the correct query: let's imagine you're trying to reach the Label property of a relay. Instead of ending my query with Label> and trying different queries to reach that property of the relay, I like to end the query with ClassName>.
That way, while I'm trying to find the correct query through trial and error, I'll always know what object my query is currently looking at, since a ClassName property exists for every single object in SkyCAD, whereas Label does not. So, you will never get #ERROR: No Such Query during this process.
Then, once I know I'm at the right object (the relay in this case), then my final step is to simply change ClassName> to Label>.

I hope this helps you with queries in the future.
However, please don't hesitate to ask whenever you need a query.
We're here to help.