Is there a PropertyXLinkList hidden somewhere? I have found App::PropertyXLinkSubList, but I don't need subelements.
If there is no PropertyXLinkList available, what is the recommended approach to supporting App::Link in objects that now use PropertyLinkList to connect to other objects? Adding an App::Link to a regular PropertyLinkList fails with "PropertyLinkList does not accept external object".
Thanks,
wf
No App::PropertyXLinkList?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: No App::PropertyXLinkList?
bump.
looking for something like this:
looking for something like this:
Code: Select all
myDocumentObject
+--- App::Link #1
+--- App::Link #2
+--- ...
Re: No App::PropertyXLinkList?
realthunder wrote: ping
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: No App::PropertyXLinkList?
I think you mean to link to external objects, directly? I am asking because App::Link is an object as well, and can be local or external. For objects with PropertyXLink, it can link directly to external object without App::Link. Without it, the object can indirectly link to external object through a local App::Link.wandererfan wrote: ↑Mon Jan 13, 2020 7:20 pm bump.
looking for something like this:
Code: Select all
myDocumentObject +--- App::Link #1 +--- App::Link #2 +--- ...
Anyway, I will add PropertyXLinkList. It can be easily done with some small modification to the existing PropertyXLinkSubList. It is the link list property editor that's taking me some extra time. It will be ready soon.
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: No App::PropertyXLinkList?
This is the post that prompted the question.realthunder wrote: ↑Fri Jan 17, 2020 4:31 am I think you mean to link to external objects, directly?
OP has a file with several links and wants to make a drawing. Usually the list of objects to be drawn goes into a PropertyLinkList, but that won't accept external objects.
I was going to add a parallel property for external links (PropertyXLinkList). If there's a better way to handle this, let me know.
wf
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: No App::PropertyXLinkList?
PR submitted here.