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.

Point Polar problem

Started by Latheman, March 19, 2010, 12:35:32 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Latheman

Silly question, or at least I hope it is.

Using Point Polar, I insert in the angle box, eg 92.5°. It displays 92° (or maybe 93° - doesn't really matter), ie the 0.5° disappears.

Q1. How can I make it display what I type?

Q2. Does it actually retain internally the 92.5° and draw accordingly?

As I said, silly question, 'cos I can't find how to change it, and the .pdf file isn't exactly brilliant.

Dcad V.17.2. Windows XP.

Regards,

Peter G. Shaw

Dempsey

I don't know how to display it properly after you have entered 92.5, but it does remember your value. To verify that draw a 3 point Dimension Angle and you with see that it displays 92.5.

To change the dimension angle display precision do Option/Option/Dimension/Dimension Angle and then change the Accuracy.

After you have drawn the Dimension Angle, just select the dimension, go to Info Box/Units-Tolerance and change it there.
Dempsey

REF

If you're asking if it can display what your typing, than I would go to Options>General>Coordinate System>Precision and maybe put something like 3 there.
DesignCAD user since 1990

Lar

Yep, Lath, you propably have you angle precision set to zero, which is the default when dcad is installed. I always have mine set to 3 so I didn't even know that the angle input was rounded to the nearest integer. Good thing the linear numbers don't round.

Lar

Latheman

#4
Hi Ref & Lar,

Got in one. It was the Angle Precision shown as zero under Options, General, Angles. Set it to 2 and all is now ok.

See, I said iit was a silly question didn't I. Must have been either a senior moment, or the end result of being tired.

Very many thanks.

Right, now all I've got to do is to make sure that DC does not forget it....... Should be somewhere...... Let's see, what about the automatically loaded Workspace set of parameters....

Regards,

Peter G. Shaw


Lar

#5
Quote from: Latheman on March 20, 2010, 07:04:57 AM
Right, now all I've got to do is to make sure that DC does not forget it....... Should be somewhere...... Let's see, what about the automatically loaded Workspace set of parameters....

There you go making things complicated again. Just click the 'Save As Default' button near the bottom of the same General section. However, dcad doesn't write things in the config files (the ini files) until you close so just save your work and shut down, then reopen. if you have more than one instance open then set it in all and shut all down.

Hmmm... I guess it is complicated, after all  :)

Lar

ps: By the way, it's only silly to ask a question when you already know the answer. If you didn't ask this I would not know that the angle gets rounded off.


Latheman

Hi Lar,

What I have found is a way of working that worked when using DC2000, and which I simply transferred to the present version of the program.

What I do, is that I have a base drawing which is automatically loaded whenever DC starts up. This base drawing contains all the stuff set up just as I like it, such as layers with specific names and colours. The drawing does have a short macro associated with it which deletes the drawing leaving a blank screen, but retaining all the parameters I want.

Now fair enough, there may well be a better way of doing it, but it works for me, and that's that. So, in order to retain the particular setting discussed above, I need to incorporate it into the base drawing, save it, and hey presto, no more problems.

Thanks anyway for your assistance.

Regards,

Peter G. Shaw

Lar

Quote from: Latheman on March 20, 2010, 10:19:24 AM
Now fair enough, there may well be a better way of doing it, but it works for me, and that's that. So, in order to retain the particular setting discussed above, I need to incorporate it into the base drawing, save it, and hey presto, no more problems.

Cool. I don't know about dc2000 but now'a days the angle thing saves with the program, not with the drawing. There's a move afoot right now on this forum by Dr PR who is advocating that very thing... the ability to save different parameters with each drawing individually.

Dr PR

Latheman,

A word of caution about using "template" files. One of the variables saved with a file is the "Maximum Group ID." Whenever a group is created it is given a Group Number equal to the Max Group ID and then the Max Group ID is incremented once or twice, depending upon hot the new group is created. Max Group ID is never automatically decremented, and over time it continues to get larger. In versions before V19.1 the maximum limit for this variable was about 16,000. It is much larger in V19 and V20, but there is still an upper limit.

When Max Group ID overflows strange things happen. When a new group is created it is given a Group ID number starting over at 1. If an existing group already has this Group ID the new group will be merged with it. Worse still, on some occasions something happens that makes the file uneditable - making any change crashes DesignCAD (all versions). The file is lost forever.

I had this happen with a template file I had been using for many years. Every now and then I would make changes to a new drawing, then delete everything but the title and borders and save it as the template file. Year after year the Max Group ID kept climbing until one day it overflowed. Every new drawing after that was screwed up.

There is a round-about way to reset Max Group ID in versions before V20.0, but you will lose layer names and other information.

V20.0 has a "Pack Layer ID" function that will reset the Max Group ID. Be sure to use it on your template files.
DesignCAD user since 1987

Dempsey

Very educational; I learned something new again.
Dempsey

Latheman

Hi Dr. PR,

Thanks for the info but I am now left with another query. Probably my ignorance, but unless I ask, I won't find out any more.

You talk about groups as in Group Number and Max Group ID. Are these groups the same as in Group Define and Group Explode which I do tend to use quite a lot?

Does this number only apply to the one datafile, or is it one that is used by the program and entered into whichever datafile is in use at that time?

Regards,

Peter G. Shaw

Rob S


Yes indeed, every time you define a group it adds to the highest existing group ID, and when you run out, S..t happens!

If you use groups a lot, and you have experienced weird problems, this was most likely the cause.

If you are not going to update to V20, you'll have to  your hands on the workaround.
User since forever

Dr PR

Latheman,

It does refer to those often used groups created with "Group Define," "Group Explode" and "Recursive Group Explode."

For your "template" file there is an easy way to reset the Max Group ID in older versions of DesignCAD. You just copy the contents of the template file to another file, but you must use the following procedure:

1. Open a new empty drawing. Draw one simple line (V). Note: If you have contents in the template file that are at specific grid locations, put one end of this line at the absolute coordinate (Point XYZ, or the ";" key)and use it as a reference point.

2. Select the line and define it to be a group. You now have a group count of 1 and a Maximum Group ID = 2.

3. Open your template drawing and select everything.

4. Copy the contents of the template to the clipboard.

5. Switch to your new drawing (click on the "Window" menu item and select the drawing from the list at the bottom).

6. Paste the contents of the clipboard into your new drawing. If there are any groups in the template contents they will be renumbered starting at 2, and the Max Group ID will increment to equal the total number of groups in the new template file plus one or two.

7. Now you must rename any layers (layer names are not copied) and reset any other features common to the template file.

8. Save the file as your new template (you may want to rename the old file just in case).

Note: This is not a perfect solution. As I said all layer names and other layer settings (color, line style, etc.) are lost and must be regenerated manually in the new file.

DesignCAD V20 has a new "Tools/Groups/Pack Group IDs" function that does the job within a file without changing other file properties. V19 and V20 have also added the group functions as icons in the main tool box.


****

Here are some other things to remember about the Max Group ID variable.

If you select a group and duplicate it (N) the Max Group ID will increment by one. If you select the group, copy it to the clipboard and then paste it into the file Max Group ID will increment twice. Copy/paste runs up the count twice as fast as duplicate.

Deleting groups does not decrement the Max Group ID variable. Any new group created will use the current Max Group ID as the new group ID, and Max Group ID will be incremented. New groups do not fill in holes in the group ID list created when old groups are deleted.

Creating arrays of groups, especially nested groups, can drive up the Max Group ID count very quickly. Even though V19 and V20 have a much larger maximum Max Group ID, it is still easy to exceed.

When you exceed the maximum allowable number of groups it is no longer safe to continue editing the drawing. However, you can always select a bunch of existing groups, explode them, reselect the parts and define everything as a new single group. Then use "Pack Group IDs" or use the file copy procedure defined above to repack Group IDs and reset the Max Group ID variable.


****

In newer versions DesignCAD can create nested groups, but the implementation is badly screwed up. Nested groups will always have a hidden, nonselectable object in the layer that was current (the working layer) when the group was created. However, all visible parts of the nested group can be on other layers (where they were when the group was created). If at some time later you lock the layer with the hidden part you will not be able to select the group. If the hidden object is on an invisible layer you cannot move the group. Worse still, DesignCAD provides no way for you to discover which layer the hidden object is on. You can enable and unlock all layers, select the group, and move all of its parts to a new layer, but this destroys the layer organization in the group. You can disable nested groups with "Options/General/Don't use nested groups." If you use nested groups BE CERTAIN that you always make a layer containing at least one of the drawing objects to be in the group the current working layer before defining the group - this way the hidden object will be on one of the layers actually containing parts of the group.

I religiously do everything I can to prevent the program from creating nested groups. Before creating any group I select the objects and use "Recursive Group Explode" to eliminate any hidden nested group objects that might be lingering about. Then I reselect the objects using "Shift P" (reselects the last collection of objects selected) and use "Group Define" to create the new group. I do this even though I have selected "Don't use nested groups" because I simply don't trust the current implementation. You can still open old files containing nested groups, and if you forget to tell the program to not use nested groups it will create them.
DesignCAD user since 1987

Latheman

Rob S & Dr.PR.,

Thanks for your replies. What we actually need then is some means of looking to see what this number actually is so that one can keep a check on it.

Given that the value appears to be 16K, I suspect that for my purposes I probably won't reach it. As I said I do have this very basic template file which really only holds a set of 12 or 16 layers information and which hasn't been altered for some time. Also I'm not what one could call a heavy user - the program is used for reasonably simple 2D stuff. I did once venture into 3D , but lost interest as I simply do not need 3D.

What I do do, is to create a part of a drawing, for example recently a square topped screw for a lathe 4-way tool post. This was then turned into a group, and copied three times and used in three other places. I also create a groups for particular parts of the drawing so that I can move them around without losing positioning. If, as I understand what has been said correctly, this value is stored with each file, then if I start a drawing by using the automatically imported template file which, come to think of it, doesn't have any groups as there is no need for them, then each drawing should start at a very low level, perhaps less than 10. Which means I've got a long way to go before trouble erupts.

Nevertheless, it is something worth bearing in mind, in fact I will download this thread and store it for future reference.

Looking at the startup sequence, I have a startup macro, which loads a file Startup,dc. This file contains the desired layer info (colours & names), stuff like A4 size paper and margins, and a squiggly line. The macro, after loading the file, then selects all, followed by delete all, leaving a blank screen but with the pre-defined layers. So no groups, as I understand it, are used.

Now whilst in development, groups are created and deleted almost with gay abandon, given the size of my drawings, I rather think I possibly have a long way to go!

Still, many thanks,

Peter G. Shaw

Rob S

A macro exists on the forum to find your max group id, I think it is this one.

http://forum.designcad.com/index.php?topic=649.0
User since forever