Arch Panel Cut from padded sketch doesn't work.

A forum dedicated to the Arch module development
sliptonic
Posts: 592
Joined: Tue Oct 25, 2011 10:46 pm

Arch Panel Cut from padded sketch doesn't work.

Postby sliptonic » Sun Mar 19, 2017 6:28 pm

Starting with a sketch, if I create an Arch Panel and then a Panel cut, I get an object with a collection of edges. A panelsheet from the panelcut also works correctly.

Next I tried padding the sketch, then select the pad (or body) and creating an Arch Panel from it. The pad turns brown and becomes a Panel in the tree, but when I try to create a Panel Cut from it, nothing is shown and the object.Shape has an empty edge list.

Am I missing a vital step?
sliptonic
Posts: 592
Joined: Tue Oct 25, 2011 10:46 pm

Re: Arch Panel Cut from padded sketch doesn't work.

Postby sliptonic » Mon Mar 20, 2017 2:17 pm

A few other weird things I'm seeing with panel cuts and sheets. I'll add bugs if these are anything other than my misunderstanding.

Below, the panel, cut, and sheet all have placement set to 0,0,0, but the cut is offset left and below the panel. It may not be important butI don't know where this offset is coming from.

snapshot-10.png
snapshot-10.png (4.4 KiB) Viewed 89 times


If I create a sheet and a cut unrelated, then double click the sheet, I should be able to add the sheet. However, I can't see anything in the list to add to the group. If I create the sheet by selecting one or more cuts, I can remove them, but they are unavailable to re-add.

Double click into the panelsheet and then click the 'Edit View Positions' You get a black square node for the position of each panelcut and one more. I'd expect this is to adjust the position of the sheet. It's not. Dragging it seems to change the position of the sheet tag. This might be intentional or a bug.

It would be nice if the panelsheet tag defaulted to the sheet label or used the same substitution string that the panelcuts use.
User avatar
yorik
Site Admin
Posts: 8549
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Arch Panel Cut from padded sketch doesn't work.

Postby yorik » Mon Mar 20, 2017 2:20 pm

sliptonic wrote:Am I missing a vital step?


No, I just think I didn't consider that case :)

Although the panel itself can be based on any solid, I believe panel cuts will only work well if the panel is based on a 2D shape (and therefore generate its own extrusion). But it should be fairly easy to support Part Extrusions and PartDesign Pads too, I'll have a look at it

About your other bugs I need to look better. Could you attach the file that shows the offsetted panel problem?
sliptonic
Posts: 592
Joined: Tue Oct 25, 2011 10:46 pm

Re: Arch Panel Cut from padded sketch doesn't work.

Postby sliptonic » Mon Mar 20, 2017 2:37 pm

yorik wrote:
sliptonic wrote:Am I missing a vital step?


No, I just think I didn't consider that case :)

Although the panel itself can be based on any solid, I believe panel cuts will only work well if the panel is based on a 2D shape (and therefore generate its own extrusion). But it should be fairly easy to support Part Extrusions and PartDesign Pads too, I'll have a look at it

About your other bugs I need to look better. Could you attach the file that shows the offsetted panel problem?


Thanks Yorik. File is attached. The offset is NOT causing me any problem at the moment, it's just strange. The placements coming from the panelsheet are correct for generating the path.

Not being able to add panelcuts to an existing sheet is a bigger problem since the user would have to delete the sheet and re-add it with the panelcuts selected. I don't see a work-around.
Attachments
laserpanel.fcstd
(23.35 KiB) Downloaded 1 time
User avatar
yorik
Site Admin
Posts: 8549
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Arch Panel Cut from padded sketch doesn't work.

Postby yorik » Thu Mar 23, 2017 3:42 pm

Okay, I had a look at your file.

1) The offset is because of how the panel cut works: It extracts the base wire of the panel, then rotates it into the XY plane and translates it to the (0,0,0)origin point. So you can have a big assembly of panels, located anywhere in space, all the panel cuts will spawn around the (0,0,0) point. I'm not sure it's the most clever idea, buy it seemed better to me than leaving it under the panel itself, where it could be hard to notice and select.

Ideally, when creating panel cuts from several panels, they should be placed in a nice kind of array... Or even more ideally, already come automatically nested :)

2) It is possible to add a panel cut to an existing panel sheet. It works like other Arch objects, double-click the sheet to enter edit mode, select the cut, select the "Group" in the task panel, and press the "Add" button.

This system is still a bit clumsy and should be bettered, I should implement drag&dropping from the tree (i think it's possible now in python view providers), and not be forced to click the "Group" after you select an object.
cron