Drawing link object in a page with techdraw

Discussions about the development of the TechDraw workbench
DDM
Posts: 58
Joined: Tue Feb 05, 2019 9:06 am

Drawing link object in a page with techdraw

Postby DDM » Fri Dec 27, 2019 1:35 pm

Hello,

First of all many thanks for the development of this useful workbench....

I am searching a way to create the 3D model in one file and to draw the assemblies and parts in a second file using link objects.
See the attached file:

1) File Base_Node: parts, structures and links of a base column
2) CL001: only links (link group with links in it)

I would to create a page with the assembly (CL001 link group) and the parts of the assembly (LK_P001, LK_P002, LK_P003), in the same page or in other page of the CL001.FCStd file.

There aren't problems when I insert the assembly view, but when I try to insert the view of the single link (i.e. LK_P001) I got this message (see Image attached).

"PropertyLinkList does not support external object".

Is it my fault or are there some parameters I have to change?

Do you have any suggestions?

Many thanks,
Marco

FCinfo
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19060 (Git)
Build type: Release
Branch: master
Hash: 72065b0d3960ec9b4aa90cce1a6e810e8bab68c4
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Attachments
CL001.FCStd
(9.49 KiB) Downloaded 6 times
Base_Node.FCStd
(39.86 KiB) Downloaded 6 times
Image.jpg
Image.jpg (260.84 KiB) Viewed 652 times
User avatar
wandererfan
Posts: 3640
Joined: Tue Nov 06, 2012 5:42 pm

Re: Drawing link object in a page with techdraw

Postby wandererfan » Sat Dec 28, 2019 1:34 am

DDM wrote:
Fri Dec 27, 2019 1:35 pm
There aren't problems when I insert the assembly view, but when I try to insert the view of the single link (i.e. LK_P001) I got this message (see Image attached).

"PropertyLinkList does not support external object".

Is it my fault or are there some parameters I have to change?
Only had time for a quick look, but it looks like I have to change some code.
User avatar
wandererfan
Posts: 3640
Joined: Tue Nov 06, 2012 5:42 pm

Re: Drawing link object in a page with techdraw

Postby wandererfan » Sun Dec 29, 2019 5:22 pm

DDM wrote:
Fri Dec 27, 2019 1:35 pm
I am searching a way to create the 3D model in one file and to draw the assemblies and parts in a second file using link objects.
Do you have any additional test files? I've made some progress, but I need to do more testing.

Only working for 1 App::Link per View for now.
Progress.png
Progress.png (26.78 KiB) Viewed 562 times
DDM
Posts: 58
Joined: Tue Feb 05, 2019 9:06 am

Re: Drawing link object in a page with techdraw

Postby DDM » Sun Dec 29, 2019 8:38 pm

Thanks Wandererfan for looking into it....
I think that Links/Link Groups have a great potential to produce technical drawings outside the main model.

Here attached another example with a beam-column node.
I created Steel Parts with Arch/Part/Sketcher/Part workbenches, the assembiles are Link Groups with Links of single Steel Parts.
In this example I created two Link Group, one for the column and one for the beam.

There are three files:

1) Beam_Column_Node.FCStd : 3D model
2) TR001_Drawing.FCStd : for beam drawings. There is a page with a ProjGroup of the TR001 assembly
3) CL001_Drawing.FCStd : for column drawings. There is a page with a ProjGroup of the CL001 assembly

Thanks, Marco
Attachments
TR001_Drawing.FCStd
(11.93 KiB) Downloaded 8 times
CL001_Drawing.FCStd
(12.12 KiB) Downloaded 7 times
Beam_Column_Node.FCStd
(50.26 KiB) Downloaded 10 times
User avatar
wandererfan
Posts: 3640
Joined: Tue Nov 06, 2012 5:42 pm

Re: Drawing link object in a page with techdraw

Postby wandererfan » Wed Jan 08, 2020 4:10 pm

This may take a while. It looks like I'll have to implement a new property type before I can make the changes to TechDraw.
https://www.forum.freecadweb.org/viewto ... 10&t=42022
User avatar
wandererfan
Posts: 3640
Joined: Tue Nov 06, 2012 5:42 pm

Re: Drawing link object in a page with techdraw

Postby wandererfan » Mon Feb 10, 2020 5:06 pm

DDM wrote:
Sun Dec 29, 2019 8:38 pm
Here attached another example with a beam-column node.
I created Steel Parts with Arch/Part/Sketcher/Part workbenches, the assembiles are Link Groups with Links of single Steel Parts.
In this example I created two Link Group, one for the column and one for the beam.

There are three files:

1) Beam_Column_Node.FCStd : 3D model
2) TR001_Drawing.FCStd : for beam drawings. There is a page with a ProjGroup of the TR001 assembly
3) CL001_Drawing.FCStd : for column drawings. There is a page with a ProjGroup of the CL001 assembly
Do these pictures look like what you'd expect? They seem ok to me except CL001_3Views has only 1 brace plate (gusset? LK_P003), where there are 2 in the 3d view. Scales are assigned randomly to fit things on the pages.
Base_Node_CL001.png
Base_Node_CL001.png (57.1 KiB) Viewed 357 times
TR001_Drawing_TD.png
TR001_Drawing_TD.png (63.77 KiB) Viewed 357 times
CL001_3views.png
CL001_3views.png (39.29 KiB) Viewed 357 times
DDM
Posts: 58
Joined: Tue Feb 05, 2019 9:06 am

Re: Drawing link object in a page with techdraw

Postby DDM » Tue Feb 11, 2020 10:16 pm

Thanks for looking into it....
Do these pictures look like what you'd expect? They seem ok to me except CL001_3Views has only 1 brace plate (gusset? LK_P003), where there are 2 in the 3d view. Scales are assigned randomly to fit things on the pages.
It seems ok to me too, except for the stiffner LK_P003 (should be two stiffners next to the column)...
Strange behaviour for LK_P003...I opened the model with the last git release and it was not placed in the correct place...
Probably there is a problem with the placement of the link object with the new version...I will look into it...
I will try to arrange the elements with the assembly 4 workbench...

How did you obtain this views? With the last git version?
I tried with the last version without success...

Marco

FC info
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19510 (Git)
Build type: Release
Branch: master
Hash: c3eb6d9001c4d60ff7f7cae89f50bd3c965a9940
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
User avatar
wandererfan
Posts: 3640
Joined: Tue Nov 06, 2012 5:42 pm

Re: Drawing link object in a page with techdraw

Postby wandererfan » Wed Feb 12, 2020 1:04 am

DDM wrote:
Tue Feb 11, 2020 10:16 pm
How did you obtain this views? With the last git version?
I tried with the last version without success...
Thanks for the feedback.

I made the views with my development branch.

This change is just starting to make its way into the master branch. The first chunk went in today and there are probably 2 more chunks to be finalized. I'll post something once everything is available.
User avatar
wandererfan
Posts: 3640
Joined: Tue Nov 06, 2012 5:42 pm

Re: Drawing link object in a page with techdraw

Postby wandererfan » Fri Mar 13, 2020 2:03 pm

Views of Part::Links has finally made it into master with this git commit 37b578bf49.
DDM
Posts: 58
Joined: Tue Feb 05, 2019 9:06 am

Re: Drawing link object in a page with techdraw

Postby DDM » Wed Mar 25, 2020 10:53 pm

Hello @Wandererfan,

thanks for adding this...

I tried an example. It is a beam with two end plates. Here attached the 3D model, and the drawing using links.
There are not problem to insert the link of the assembly (TR001) and the links of the single parts (P001 and P002).
The problem is the position of the end plates in the TR001. As you can see the end plates in the page are in a different position respect the link of the assembly.

Have you any idea? In the 3d model (Beam+End_plates.FCStd) I set the property of the links "Link Transform" to TRUE to use the position of the original steel parts.
It seems that the placement of the end plates for the page/techdraw is the original sketch/extrude placement.

Thank for your help.
Marco

FC info
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20052 (Git)
Build type: Release
Branch: master
Hash: 6291921e9abe737e4440ff5814ca58547defadef
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Italian/Italy (it_IT)
Attachments
TR001_Beam+End_Plate_Drawing.FCStd
(11.22 KiB) Downloaded 4 times
Beam+End_Plate.FCStd
(27.48 KiB) Downloaded 5 times