Thanks Phil. It was informative though and gave me ideas for something else.
I was thinking about something more along the lines of adding an "IPAddress" and "SubnetMask" property to the Drive class and then creating a list of just those symbols that have these properties. Then I would put them on a list. (This is kind of part of the other post where I am asking about adding the Drive Parameters as properties to the Drive class and then creating a list of those)
In Autocad Electrical, I do this by using Rating attributes Rating5 and Rating6. I then sort the Component report and wrote a User Post that removes all the components where these attributes are blank.
I am just wondering if this was how others might have done this....
Not sure if we grasp well your need with regards to IP addresses, but we think what we just posted about drive parameter creation/management might do just as well for IP Addresses.
This is related to the other post but thought it might pertain better to this one.
I have created the Drive Parameter class and am able to add properties to the component.
What I want to do next is to extract certain cells from this Class and have it appear in another class.
For example:
In the Drive Parameter Class, I have the following columns: Number, Name, Value.
In the ENET Parameter Class I have IPAdd1, SubnetMask1, IPAdd2, SubnetMask2.
What I want to do is build IPAdd1 from the 4 rows of information stored in Value of the Drive Parameter Class.
I thought I could reference "Drive Parameter.Number" = A and return "Drive Parameter.Value"
So the psuedo code would be
<Drive Parameter.Number=A then Drive Parameter.Value(a)>"."<Drive Parameter.Number=B then Drive Parameter.Value(b)>"."<Drive Parameter.Number=C then Drive Parameter.Value(c)>"."<Drive Parameter.Number=D then Drive Parameter.Value(d)>
This would then build the IP (a.b.c.d)
I realize this is probably a big ask but if you do not ask....
In the 'IPAdd1' property definition settings (in the Catalogue tools), set the 'Initial value' to this:
<r:GetParent.GetWorkObjects(Class:"Drive parameter";Where:Number=A).Value>.<r:GetParent.GetWorkObjects(Class:"Drive parameter";Where:Number=B).Value>.<r:GetParent. (and so on...)
We just tried it and it works fine on our end.
(NOTE: While editing the 'Initial value' property, make sure deactivate the 'Process property query' while the cell is selected if you want to be able to modify it after your first hit on 'Enter'...)
The only thing I noticed is thathe List block did not update until after I hit refresh. Is that normal? (I seem to remember having something like this happen earlier but do not remember what fixed it)
The only thing I noticed is thathe List block did not update until after I hit refresh.
Yeah, this is an old issue we need to fix. Some queries do not update themselves automatically, depending on the case. But we just finally figured out why, and should be able to come up with a fix for the next release.
Sorry about not getting back to you about this. It seems it slipped between the cracks...
Is it possible tom implement a tag in the component that just shows the value is there is a value.
We think it is possible, and based on this other topic of yours, we seem to understand this part is resolved. Let us know if we understand right.
Other question => I would like the IP addresses that are filled in to be unique. Is it possible to check the "value" field on global uniqueness?
It can be possible, but not by defining the 'value field on global uniqueness'. In the IP address class, you must define which property should be the 'ID Property', and then assign a numbering format to the class. This actually should probably work better then using 'initial value' as you are attemtping to do in this other topic.
I have 2 resulting issues I cannot resolve without help.
1- In my IP table, I need to add an owner. This works. I have the tag of the component as owner. But this tag does not say enough to me, so I would like the owner field to be filled with the title of the page the component is on. What is the right query?
2- I would like a text in my component block that shows the IP address when it is assigned to the component. I cannot get this.
1- In my IP table, I need to add an owner. This works. I have the tag of the component as owner. But this tag does not say enough to me, so I would like the owner field to be filled with the title of the page the component is on. What is the right query?
Try this: (assuming you are placing this query within a query cell of your explorer query)
GetParent.GetWorkBlocks(Item:0).Parent.Title
(Notice you shouldn't put start and end 'tags' -- <r: ... > -- when specifying a query in a query cell.)
2- I would like a text in my component block that shows the IP address when it is assigned to the component. I cannot get this.
Try the following query in the text attribute of your block:
Because I have always 1 drive on 1 page, and I have a list generated, getting unique IP addresses is a nice to have for me, but the real goal (getting the IP list in a nice and automated way) is accomplished.
I have the feeling that if the IP is uniqueliy generated it will get messed up with my pagenumber / ip list. So no problem if it is left like this. If it is only for me, then it is really not needed.
I forgot to add the sample
Have you looked at this Topic?
Thanks Phil. It was informative though and gave me ideas for something else.
I was thinking about something more along the lines of adding an "IPAddress" and "SubnetMask" property to the Drive class and then creating a list of just those symbols that have these properties. Then I would put them on a list. (This is kind of part of the other post where I am asking about adding the Drive Parameters as properties to the Drive class and then creating a list of those)
In Autocad Electrical, I do this by using Rating attributes Rating5 and Rating6. I then sort the Component report and wrote a User Post that removes all the components where these attributes are blank.
I am just wondering if this was how others might have done this....
Not sure if we grasp well your need with regards to IP addresses, but we think what we just posted about drive parameter creation/management might do just as well for IP Addresses.
Let us know if we're right!
This is related to the other post but thought it might pertain better to this one.
I have created the Drive Parameter class and am able to add properties to the component.
What I want to do next is to extract certain cells from this Class and have it appear in another class.
For example:
In the Drive Parameter Class, I have the following columns: Number, Name, Value.
In the ENET Parameter Class I have IPAdd1, SubnetMask1, IPAdd2, SubnetMask2.
What I want to do is build IPAdd1 from the 4 rows of information stored in Value of the Drive Parameter Class.
I thought I could reference "Drive Parameter.Number" = A and return "Drive Parameter.Value"
So the psuedo code would be
<Drive Parameter.Number=A then Drive Parameter.Value(a)>"."<Drive Parameter.Number=B then Drive Parameter.Value(b)>"."<Drive Parameter.Number=C then Drive Parameter.Value(c)>"."<Drive Parameter.Number=D then Drive Parameter.Value(d)>
This would then build the IP (a.b.c.d)
I realize this is probably a big ask but if you do not ask....
Is this possible?
I realize this is probably a big ask (...)
Nope! Right there with you...
In the 'IPAdd1' property definition settings (in the Catalogue tools), set the 'Initial value' to this:
<r:GetParent.GetWorkObjects(Class:"Drive parameter";Where:Number=A).Value>.<r:GetParent.GetWorkObjects(Class:"Drive parameter";Where:Number=B).Value>.<r:GetParent. (and so on...)
We just tried it and it works fine on our end.
(NOTE: While editing the 'Initial value' property, make sure deactivate the 'Process property query' while the cell is selected if you want to be able to modify it after your first hit on 'Enter'...)
That worked pefectly!
The only thing I noticed is thathe List block did not update until after I hit refresh. Is that normal? (I seem to remember having something like this happen earlier but do not remember what fixed it)
That worked pefectly!
Great!
The only thing I noticed is thathe List block did not update until after I hit refresh.
Yeah, this is an old issue we need to fix. Some queries do not update themselves automatically, depending on the case. But we just finally figured out why, and should be able to come up with a fix for the next release.
Some unauthorised material ;)
Cannot delete the last one.....
Getting the address on the component works as described.
But that is a lot of work.
Is it possible tom implement a tag in the component that just shows the value is there is a value.
I tried this tag, but it did not work:
<r:GetParent.GetWorkObjects(Class:"IP address").Value>
If I can implement the table in the block it is also good for me, but I just want it to be in the block while inserting it.
Other question => I would like the IP addresses that are filled in to be unique. Is it possible to check the "value" field on global uniqueness?
Bump
Sorry about not getting back to you about this. It seems it slipped between the cracks...
Is it possible tom implement a tag in the component that just shows the value is there is a value.
We think it is possible, and based on this other topic of yours, we seem to understand this part is resolved. Let us know if we understand right.
Other question => I would like the IP addresses that are filled in to be unique. Is it possible to check the "value" field on global uniqueness?
It can be possible, but not by defining the 'value field on global uniqueness'. In the IP address class, you must define which property should be the 'ID Property', and then assign a numbering format to the class. This actually should probably work better then using 'initial value' as you are attemtping to do in this other topic.
We'll get back to you shortly with a step-by-step
I have 2 resulting issues I cannot resolve without help.
1- In my IP table, I need to add an owner. This works. I have the tag of the component as owner. But this tag does not say enough to me, so I would like the owner field to be filled with the title of the page the component is on. What is the right query?
2- I would like a text in my component block that shows the IP address when it is assigned to the component. I cannot get this.
1- In my IP table, I need to add an owner. This works. I have the tag of the component as owner. But this tag does not say enough to me, so I would like the owner field to be filled with the title of the page the component is on. What is the right query?
Try this: (assuming you are placing this query within a query cell of your explorer query)
GetParent.GetWorkBlocks(Item:0).Parent.Title
(Notice you shouldn't put start and end 'tags' -- <r: ... > -- when specifying a query in a query cell.)
2- I would like a text in my component block that shows the IP address when it is assigned to the component. I cannot get this.
Try the following query in the text attribute of your block:
<r:GetParent.GetWorkObject.GetWorkObjects(Class:"IP address").Value>
The last 'Value' part assumes your 'IP address' class has a 'Value' property defined where the IP address is indicated.
Let us know if it works out.
(P.S.: We are still working on supplying a solution for automatically getting a default value for your IP address...)
These solutions work like a charm!
Because I have always 1 drive on 1 page, and I have a list generated, getting unique IP addresses is a nice to have for me, but the real goal (getting the IP list in a nice and automated way) is accomplished.
I have the feeling that if the IP is uniqueliy generated it will get messed up with my pagenumber / ip list. So no problem if it is left like this. If it is only for me, then it is really not needed.
Very happy with the result!
Now WITH image
How do I prevent the IP addresses from showing up under "Elements with no layout" in the layout view?
Please give us some time to consider this and get back to you.
We have fixed this for teh next version, as described in this ticket we just created.
Thanks for letting us know about this!