News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Make Plane - suppress dialogue...

Started by minstrel, January 27, 2014, 03:11:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

minstrel

This one has become more than annoying  >:(...see attached.

Is there a way to 'suppress' this Make Plane dialogue and have it default, silently to "Continue" [leave points unmoved] from within a macro [basicCAD]?

prl

#1
Hi Minstrel,  seems like if  you press "continue", it aborts the process of making a plane.  Same as "cancel".  Is this what you are trying for, to abort the command without creating a plane?


Edit:  Interesting behavior comparing "MakePlane" with the "Plane" command.  With the "Plane" command, if your points are not in a plane, the "continue" command will create an improper plane (in other words, several planes).  The "continue" in "MakePlane" does not, it simply cancels the command.

minstrel

#2
Yea, it's a head scratcher!   I think I'm just trying to break all the rules with this one, but it does add
for some interesting results.  And the 'dialogue' wants to slap my hands every time I try it!

As an example [see attached .dcd] I show a pier slightly elevated above its base[grid].  Using a triangular approach [planer] causes no problems; the abnormal approach uses 5 points and thus breaks those rules?.

Anyhow, it no biggie if there's no way to suppress the dialogue...but the results are none-the-less interesting.  In the .dcd file are quick SketchUp renders showing both approaches.

edit - added sketchup quickies as attachments ... probably missin in the .dcd

prl

#3
 :)
Quote from: minstrel on January 27, 2014, 04:59:09 AM
I think I'm just trying to break all the rules with this one, but it does add

Your just not a "plane" guy.  Rather Un-ruley.   :)

Looks like in DC if you use the plane command and purposely set more than 3 points that are non-planar, DC will start creating a folded surface model but it hides the diagonal for each added proper plane.  It will let you create some warped things.   Export and reimporting the item with dxf/dwg will show you the various planes.  As you said, interesting though not easily predictable as to which planes will be created in such a non-planar point setting mode.

DrollTroll

#4
In your case, try using PutAttr to change the entity from a Line (entity type 1 -- I presume that's what your starting with) to a Plane (entity type 31). No ugly dialog boxes at all.

I *think* it should work -- seems like I did this some years ago for one reason or another.

Rough example off the top of my head:
'work with first selected entity
GetSelect 1, i
Entity i
GetAttr i, etype
if etype = 1 then Putattr i, 31
25 years with DesignCAD

minstrel

Quote from: DrollTroll on January 27, 2014, 09:49:40 AM
No ugly dialog boxes at all...
I *think* it should work --

Now ain't that sweet...works like a champ!  Thanks DT!

Quote from: prl on January 27, 2014, 07:19:52 AM
... interesting though not easily predictable ...
That's what I like about it 8)


DrollTroll

Just don't try this to convert *anything* to *anything*, or you could get a crash. Plane to text, for example, or to dimension, would probably not work well at all. Planes and vectors happen to have nearly-identical point formats, so they're pretty convertible.
25 years with DesignCAD

prl

Quote from: DrollTroll on January 28, 2014, 06:59:19 AM
Just don't try this to convert *anything* to *anything*

For the brave ones, I've done this gettattr and putattr converting lines (type 1) to grid lines (type 33).  Mind you, you need to sacrifice a dummy entity before the grid lines to hold the header grid line count (type 32).  Pretty neat stuff when you are just playing around.  Never did it in a working drawing so be warned, this is data shoehorning.  Not all slippers fit.

Lar

I used that trick way back to change the old format dimension into a line (to see the point order) when I first did a dimension macro then I had to do it again with the new dimension format (a few version back). I don't remember any problems when I did it way back but with the new format I was able to get the info I needed but eventually dcad crashed (on the two occasions I did it).

Lar