DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

3D Parametric Cross Sections (paper space suggestions)

Started by Lar, May 12, 2012, 02:25:20 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

MarkX

Quote from: JJG on May 13, 2012, 10:53:48 PM
Thanks John R !

OK, when it's already exists in a IMSI-product, then why not transpose it in Designcad ?
unless it is a function related to the acis graphics engine ?
If it exists, its a TurboCad PRO product which is much, much more expensive than DC. In TC Deluxe, you can't even do a simple cross section (like you should be able to do in DC except that it doesn't always work).

Mark

Lar

Quote from: MarkX on May 14, 2012, 07:36:10 AM
... (like you should be able to do in DC except that it doesn't always work).

Mark, in your reference to 'cross sections' here, are you referring to the cross section command (which generates 2d lines) or boolean slices, which creates solids modified from their originals?

I would agree the cross section command was finicky in previous versions (time will tell for v22, worked ok so far for me) but the bools work pretty much as expected for many a previous version.

Lar

MarkX

Quote from: Lar on May 14, 2012, 08:14:18 AM
Quote from: MarkX on May 14, 2012, 07:36:10 AM
... (like you should be able to do in DC except that it doesn't always work).
Hi Lar, I was referring to the cross section command (which generates 2d lines)

I had a thread on this.  Can't remember if its supposed to be fixed in 21.2. Just tried it in 21.1 and its not working. The way that it fails is inconsistent, but basically it "misses" entire solids (walls) or sometimes doesn't see internal holes. The contour tool works better.

Mark

Dr PR

Lar,

I think we are talking about two different ideas here, but both closely related. You are talking about paperspace views, with cross sections associated with layers. JJG and I are talking about model space with cross sections associated with objects.

I didn't follow your discussion about blocks, cross sections, layers and file sizes, but I do agree that having to duplicate everything in order to generate cross sections certainly does make files much larger.

However, if the cross section objects worked as discussed in previous comments we wouldn't have to duplicate anything - just create a few visibility control volumes (solids) to show/hide specific objects.

While it would be possible to make cross sections work only with layers this would be a big mistake, in my opinion. Then it would be necessary to place each object that would have a unique section on a separate layer. I would much prefert to put all cross section objects on one or more separate layers and then be able to associate them with specific objects on multiple layers. This would allow me to disable the cross section object layers to get them out of the way (not selectable) when I am not using them, and would mean I don't have to rearrannge the entire drawing if I decide to generate cross sections after the drawing is finished (I wouldn't have to structure the drawing in advance to comply with limitations imposed by the cross section function).

****

One other thought - what if we want to export a cross section?

One way would be to export in some file format for other program(s) that support the cross section ability. This isn't likely to work, and because of the file type babble that plagues the software industry no single export file type will be very useful. It seems to me that it would be a waste of programmer time that could be used more wisely.

The other way would be to implement a Solid Subtract for the cross section objects. Turn them into regular solids and subtract the one cross section object from all other solids associated with it. This would modify the objects in the file, so it should be done only in a copy of the original file. But then when the drawing was exported to DWG it would be a cross section drawing.

In any case we should have the ability to turn regular solids into cross section objects and vice versa.

Phil
DesignCAD user since 1987

Lar

Phil, I addressed the difference between what I am requesting and what you want in my opening post:
Quote from: Lar on May 12, 2012, 02:25:20 PM
Note that this pertains to 3d cross sections and how they would work in paper space view frames, not parametric boolean operations. Here's the difference: A boolean would not change from view frame to view frame. A cross section could be on in one view and off in others.

Let's look at what you want: a simple example would be a 'drilling' solid that punches a hole in another solid. An example would be a window hole in a wall. Where ever that wall is seen you also want the hole to be seen.... You don't ever want to see the wall without the hole. Or, if you decide to not have the hole there anymore then you don't ever want to see the wall with the hole. If you hole is on in one editing window or print or paper space view then you want it on in every window or print or paper space view that it shows up in.

What I am requesting would be no different from what you are requesting if paper space did not exist in dcad because only in a paper space sheet would we able to show a full floor plan, four full elevations and a cross section cutting across the entire structure, all of them the same entities and all on the same sheet. If my cross section worked the same as your cross section then either I would get the entire floor plan or I would get a floor plan cut in half. I would not be able to get both together. Outside of paper space it is not possible to be seeing the full floor plan and the very same floor plan cut in half at the same time. You would have to duplicate the floor plan off to the side and cut the duplicate in half, which is what we have now and are trying to move away from.

Now, if my request becomes reality then you would also have what you want. You would just never have to de-activate your cross section entity, whether you use paper space or not. My cross section entity would be activated in some paper space views and de-activated in others.

In my request I am looking for a way to achieve this concept without the developers having to rework designcad. It would essentially be a block entity that redefines itself whenever it is activated and the screen is refreshed or when we print or when we enter paper space.

What you want I do in cinema 4d on a regular basis. Over there it works like this: You click a button and a 'bool' entity appears on the screen. The bool entity has no geometry, it is just a mathematical function. They call it a 'generator' there. In the properties of the bool entity you say what you want it to do: add, subtract, intersect, etc. In our case we would choose 'subtract'. You then make the main solid and the booling solid 'children' of the bool entity's hierarchy. The solid that is below the other in the hierarchy is subtracted from the upper one. If you then drag the upper one to the bottom of the list then that becomes the subtracting solid. You can add any number or bools to the mix to get a final configuration. You can even 'group' more than one solid at the same level (ie, make them children of a null object) and the act as one solid. These hierarchies can become pretty complex and digging through them can become tedious. If you want to make the configuration one entity there is a 'current state to object' command that will generate an 'exploded duplicate' (allowing you to keep the original bool hierarchy) or you can explode the original.

Lar

Dr PR

Lar,

I think I am beginning to see the fundamental difference between what you want to do, and what I want to do. You want to be able to create a cross section of everything on a layer, and I want to be able to create a cross section of only specific objects on a layer. You are thinking of architectural drawings and I am thinking of mechanical drawings. You are thinking of paper sheets with multiple views and I am thinking of a sequence of visual images to illustrate an assembly sequence or operating actions. We need a cross section function that works with both.

Quote from: Lar on May 14, 2012, 12:04:18 PM
What I am requesting would be no different from what you are requesting if paper space did not exist in dcad because only in a paper space sheet would we able to show a full floor plan, four full elevations and a cross section cutting across the entire structure, all of them the same entities and all on the same sheet. If my cross section worked the same as your cross section then either I would get the entire floor plan or I would get a floor plan cut in half. I would not be able to get both together ... .

I understand that you want to be able to enable/disable different combinations of cross sections in different views in paperspace. That is obvious! I think I do see why it matters what layers the cross section entities are on - you have no way to select individual entities in paperspace. All you can do is enable/disable layers. So you want to hobble the cross section implementation by designing it to work only with layers to comply with the shortcomings of paperspace.

However, this is not something that is limited to paperspace use. Many (most?) users do not use paperspace - it is a lot of unnecessary hassle when you do not need multiple views on a single sheet. I do not want to have to create a paperspace view to use the cross section function. I don't want to be hamstrung by having to put each object in a drawing on a separate layer just to get associations between the cross section entities and the solids they will apply to. This would require the structuring of drawings to meet paperspace limitations even if paperspace was never used, and that would be silly.

I would prefer that the cross section entities can be (but not necessarily have to be) on different layers from the solids they are to work with. And I want to be able to select the associations between a cross section entity and solids regardless of the layers they are on.

But if cross sections are implemented as I describe you can do what you want by breaking everything up into layers and enabling/disabling whatever combination you want in paperspace. And I can do what I want by selecting whatever cross section entity I want, regardless of the layer it is on, and associating it with whatever solid I want regardless of what layer it is on. Then, either in model space or in a paper space view, when cross sections are enabled whatever cross section entities are "visible" (on visible layers) are used to generate a cross section view of the solids they are associated with that are also on visible layers.

Keep in mind that there will always be an association between individual cross section entities and individual solids - look again at my warhead cross section example:

http://www.okieboat.com/Copyright%20images/Mk%2046%20CR%20warhead%201024%20C.jpg

Each piece of this assembly was cut in a way unique to that piece. You can't do this by just turning on one "chop through everything" layer. You will have to create a unique cross section entity for each unique solid, and you will have to create an association between them. Furthermore, you will need to be able to associate one cross section entity with multiple solids.

For mechanical drawings it is often desirable to have a sequence of "peel-away" cross sectional views of a complex assembly. My method of generating cross section views will allow multiple cross section entities to be assembled on a layer to create one peel-away view, and another collection of cross section entities on another layer to produce another peel-away view. The cuts on a particular solid may be different in each peel-away view (progressive peel-away). Each combination of cross sections is enabled/disabled by enabling or disabling the one layer. This would work the same in model space and paper space.

For a paperspace "chop through everything on a layer" association you just select everything on the layer and associate it with the appropriate cross section entity. Then in a paperspace view you can enable the layer to be sectioned and enable the layer with the cross section entity(s) for that layer. Furthermore, this allows you to be selective about what entities in a layer get sectioned. Just choose a specific solid and disassociate it from the cross section entity if you do not want to cross section it.

Quote from: Lar on May 14, 2012, 12:04:18 PM
Now, if my request becomes reality then you would also have what you want. You would just never have to de-activate your cross section entity, whether you use paper space or not. My cross section entity would be activated in some paper space views and de-activated in others.

I don't follow this. The whole point of cross section entities is to be able to turn the effect on and off. Normal Solid Subtract will "activate" the cross section permanently, but it modifies the drawing. The whole point of cross section entities is to be able to enable and disable the effect without changing the drawing.

Quote from: Lar on May 14, 2012, 12:04:18 PM
In my request I am looking for a way to achieve this concept without the developers having to rework designcad. It would essentially be a block entity that redefines itself whenever it is activated and the screen is refreshed or when we print or when we enter paper space.

I don't follow this. Implementing any form of cross sections will requre reworking the program. It will be necessary to rework the display code to distinguish what parts of individual solids are displayed and what are hidden, and it will be necessary to generate the cut surfaces and display them. However, the really complex change will be implementing hatches at cross section cuts.

Sorry for the long posts, but I think we both have valid objectives for this cross section function, and it would be nice if it can be implemented in a way that works for both approaches.

Phil
DesignCAD user since 1987

Lar

Phil, I know exactly what you are aiming for because, like I said previously, that's an everyday thing in cinema 4d. Over there you can entertain yourself all day by moving solids back and forth and watching how they interact.

However, there are a few points you and others may have missed, all of which are covered in my starting post, so I'll take this opportunity to reiterate them:

1] The layers are not associated with paper space views, they are associated with the container solid, and are defined in model space,

2] When a container is activated (in model space):
   (a) the real layers that are associated with it are automatically turned off...
   (b) the container then becomes a Block Entity that is controlled by its host layer (meaning the contents show although their original layers are off)...
   (c) the status of the other unassociated layers will remain unchanged for normal operation...
   (d) the difference between a regular block and the 'cross section block' (ie, the container) is that whatever crosses the edges of the container gets operated on by the normal dcad 'section trim' command (hotkey 'd'), except that:
      (i) the container solid defines the edges rather than the user setting 2 points (2 points restricts the cutting shape to a rectangular box aligned to the x, y and z axis)...
      (ii) the reason I use the 'section trim' as an example, rather than 'solid intersect' or 'slice', is because section trim works on everything, even lines and circles, but solid intersect only works on 2 solids. Slice works on everything but it doesn't have the 'inside' or 'outside' options.

3] The container solid has to be activated before it displays the cross section, so:
   (a) if activated in model space you see the results in model space and can print to paper or pdf...
   (b) in model space you can leave the container activated as long as you want but.:
       (i) if you want to edit the contents of the container you would be forced to deactivate the container so you can turn the regular layers on (whether deactivating the container automatically turns the associated layers on or not. Maybe this should be an option).

***********
So, from the above you can see that if you are not a paper space user you can still use the function.
***********

To continue...

4] a cross section block... let's call it 'subtraction' block ... A subtraction block is only in operation when the drawing file is open. This means it only resides in RAM space. By being associated with layers and not actual entities it is not using up extra memory the way a regular block does (the instance of a block that resides in RAM requires just about as much memory as actual entities). Also, the user does not have to concern himself with recording which entities a particular subtraction block is associated with when redefining a subtraction block.

5] While in paper space mode:
   (a) To display subtractions you create a paper space view frame and turn on the layers that the particular subtraction blocks (a.k.a. s-block) reside on (not their associated layers). This would:
      (i) automatically activate the s-block if it was deactivated before you entered paper space,
      (ii) automatically turn off the regular layers associated with the s-blocks,
      (iii) unassociated layers can be on or off as necessary, so things not subtracted by the s-block can still be displayed,
      (iii) if in a paper space view a s-block's layer is not on but it's associated layers are on, then the subtraction will not be displayed. The entities will be displayed in their normal states.

***********
Now, please understand that my suggestions are not 'written in stone', so to speak (since DT is the man with the chisel). They are just suggestions along the lines of which dcad now operates and only a bit of enhancing would be needed:
   (a) a block is already a container displaying virtual entities and that have its own layer control,
   (b) paper space view frames already can already display blocks according to the host layer control,
   (c) dcad's already have many functions that identify how 2 entities intersect, the 'section trim' and 'section cut off' commands, the 'surface intersection' command (under the draw menu>lines...), the existing 'cross section' and 'contour' commands, any of the boolean operations.

If DT & Co. wants to go full hog and implement full parametric functions they are welcomed to do so. However, they would still be faced with the challenge of multiple paper space view frames on the same sheet, some showing a subtraction in effect and others not showing the subtraction.

Also remember that parametric functions would involve more than subtractions. Additions, intersections, exclusive or, etc, would have to be addressed.

Lar

prl

Quote from: Lar on May 15, 2012, 08:32:13 AM
dcad now operates and only a bit of enhancing would be needed:

Lar, you are optimistic!  OK, so I read ALL this!  With the various entities passing through the "magic" surface, for the edges to be hatched differently we need a  database field for solid entities.  Basically the user needs to define how the "sliced" edges are to be displayed.  A stud should show "grain", concrete "stipple", steel "// //" etc. You could associate a typical DC hatch or a bitmap for that matter. 

Edit: this is different from the surface color, or texture, this is specifically for passing through the object.


Lar

Prl,

When I mentioned hatches in my starting post I meant that the user can create them manually. I was saying that unassociated layers can be turned on for extra stuff like 'edge'-hatches, dimensions, notes, etc. I was also saying that for this reason we would need to be able to snap to the virtual edges, all of which is possible now in dcad (except the actual cutting, of course).

If we want the container to transmit anything other than its color it may be more reasonable to suggest we give the container a bitmap texture and that gets transmitted. How this works, in dcad and cinema 4d (I can't speak for any others), is that the healed edges are simply borrowed from the cutting solid, with all its color and texture attributes, and used to patch up the holes in the cut solids, the difference being in c4d the edges are virtual and in dcad they are actual. As you know, in dcad, solids are just a collection of individual entities, each with their own attributes.

Nonetheless, the team of DT and Egor are some pretty intelligent guys. If they can come up with a way for each cut solid to have edge attributes that would be super. Since each set of cut solids that need different attributes would require a separate cutting solid then Phil's approach of associating entities with subtractors would be the way to go. My drive is to deny DT the opportunity of sayin "Guys, that feature will require a complete reworking to the interior structure of dcad, and ain't no way any time before pigs fly or hell freezes over, whichever comes first, is that going to happen!"    ;D

Lar

prl

Quote from: Lar on May 15, 2012, 10:51:54 AM
When I mentioned hatches in my starting post I meant that the user can create them manually.

That sounds tedious for anything but the simplest model.  But hey, I'm all for the rest in any flavor.

Quote. . .and ain't no way any time before pigs fly or hell freezes over, whichever comes first, is that going to happen!"
is this something the Troll muttered?

Dr PR

Lar,

DesignCAD currently associates the color of the subtracted solid from the remaining solid - I have always thought that was an especially nice feature. So your idea of assigning a hatch pattern to a cutaway solid/block isn't too far-fetched.

I'm not sure how hatch patterns would work if the cutaway surface is curved. Just thinking about implementing a complex hatch pattern that fits a complex 3D grid surface hurts my brain!

You do have a good point about having different hatch/color combinations for cutaways of different parts. This may require solids to have an "inside" color, hatch pattern or texture. Maybe this makes more sense than assigning the color/pattern to the cutaway object, but it would require reworking solids.

I can live with having multiple copies of the same cutaway solid/block, each with its own color/pattern, and just using each copy to cut away a single solid in order to get multiple cutaway surface colors or hatches on different solids.

Your method of associating cutaway solids/blocks on one layer with objects on other layers has one advantage - DesignCAD already has a similar feature with layer groups. A layer could be defined as a "cutaway layer" and then associated with other layers in a "cutaway group." Objects in the cutaway layer would be visually subtracted from objects in other layers of the cutaway group. Just enabling visibility of the cutaway layer would be all that is necessary to cause the cutaway effect on other visible layers of the cutaway group. The cutaway color/pattern could be a property of the cutaway layer. This could all be done in the Layers dialog.

My method has some problems. Since we have no way to name specific solids there is no tabular way to associate/dissociate a cutaway solid with specific objects to be cutaway. Likewise, there is no simple way to turn on/off a specific cutaway solid/block. Keeping track of cutaway associations could be messy if the cutaway solid/block was on the same layer as other objects, or if the cutaway was to be applied to only some but not all objects on a layer.

Phil
DesignCAD user since 1987

prl

Re-reading the discussions between Lar and Doc and now having seen and played with the "views" concepts in Revit, both of you are asking for more viewport controls.  Interestingly, Lar is asking for items that Revit does; Doc things that Inventor provides.  Autodesk appears to have recognized that you can massage viewport technology into different product lines.  This way you can model bombs or buildings.

If you want to get your head around the big shift in viewport technology and you know AutoCAD, think this way.  Rather than having ONE model tab and a series of paper space tabs, what you really want is an infinite amount of model tabs and paper space tabs.  Now get rid of the tabs and put this in a project browser tree.  In your model tabs, you can decide the view (3d or plan, section, etc.) You dimension directly in this model view (sound familiar).  Annotations will stay in only that model view.  Time to print or layout your work, drag the view to a paper space tab of your choosing. 

Lar

Quote from: prl on June 15, 2012, 05:33:30 AM
If you want to get your head around the big shift in viewport technology and you know AutoCAD, ...
Chief Architect had individual views looking in on the model from the late 90's, including dynamic sections (but maybe not perspective angles of sections, and definitely not 3d details). Sketchup had it from its inception around 2004 (but maybe not multiple views on the same sheet). I don't think anyone can own the concept of view ports, since laying out multiple views on one sheet was always a standard part of drafting, since way before CAD. Cinema 4D and many other animation programs, even Adobe, could do dynamic bool operations since way back. Autodesk doesn't have the right to control the technology but it looks like it will be another case of the general populace thinking there is only one cad.

Li'l ole dcad has much of the technology already. It just needs dynamic sections and parametric bools... at the same time we might as well throw in associated schedules. If view ports get worked like they do in revit (ie, notes and dimensions can go directly in a view port) I would say still keep layers so those of us who want to dimension on layers can still do so. With layers I can use the same dimensions and notes in different view ports. If I have to re-dimension or re-annotate in each view not only will that consume more time but every new set is an opportunity for a mistake or omission will be made.

Lar

prl

Quote from: Lar on June 15, 2012, 07:22:07 AM
Autodesk doesn't have the right to control the technology but it looks

Agreed.  Revit is just their forceful and dominating play into the BIM market.

I like talking and thinking about the concepts so to be clear I'm not trying to sway anyone in any particular direction or software. I compare the concepts and go from there and see what I have available in DesignCAD.  DesignCAD will never achieve the overall technical ability and integration of Revit, Inventor, SolidWorks, Cadworks etc. but it is amazing what a little clever manipulation of DesignCAD through basiccad and OLE programs can produce.  Lar, your finished production and DesignCAD basiccad creations including neat work-around concepts are the proof.

Few people who buy it (DC) at the discount bin for $15.99 know what power they have in their hands.  Of course much of the great stuff and concepts was programmed in the 80s and earlier 90s but those magical creations are still the basis of everything. I know this because of my 20+ years of tinkering with it.