Hi everyone!
I have a few questions about parameters and functions (derived parameters). First, how is it possible to make a parameter with an auto generated serial value. I'd like to make the entry-port parameter's value to be generated automatically, like in the name format if you write # it will increment the value by one. So I would be able to add the entry_port parameter to a variable connectors port, and if the connectors instanced the entry_port parameter values would be filled automatically with 1-2-3-..... (the same as the pin names). The same way, it would be nice to have a Page parameter, whats added to a template sheet, and if I create the sheet, the page parameters value increments automatically. So if I would have this parameter I could reference the sheets with it in the xref shapes label. If I can't make it this way, the sheets name would be good too, but I currently don't know how to do it yet (My next question will be about xref labels). If there's no way to make an auto generated property value, with the entry_port it would be good, to "copy" the ports name with a function?, so the entry_port's value would be the same as the ports name: 1-2-3-4..... (It would be better to generate it automatically by serial if it's possible).
My other question is about cross reference labels. I tried to use the dg_xref function for this, but I couldn't get it done, please help. If I have an xref portshape, I'd like to add a label to it, which shows only the xref sheet's name (not all of them) and the location of the xref port in that sheet. Or if my first problem could be solved, it would be nice to reference a page parameter in the label (xref page of course) and the location (like [29,4]). Currently, I'm only able to show the location and/or all of the sheets, but like this I don't know which is the xref sheet (this would be important if the design is printed). I've attached a few pictures for better understanding of the xref problem. Please help me solve these issues.
So, like this it doesn't give enough information:
And like this it's too much information, I only need the xref sheets name (or the xref sheets page parameter value if possible) (I"ve done this with the sheets parameter referenced in the label):
Thanks,
Laszlo