News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Saving Variables list to the drawing file

Started by lcone60, June 28, 2014, 07:03:33 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

lcone60

Is there a way to save (to the drawing file) custom variables that have been added to the list. When I create the variables, add them to the list, save the drawing file, close the file, exit TC, restart TC, open the drawing file the variable list is empty.
TC 21 Deluxe, Win *.1 64 bit

Dean

Quote from: lcone60 on June 28, 2014, 07:03:33 AM
Is there a way to save (to the drawing file) custom variables that have been added to the list. When I create the variables, add them to the list, save the drawing file, close the file, exit TC, restart TC, open the drawing file the variable list is empty.
TC 21 Deluxe, Win *.1 64 bit

Try this >
When you exit TC make sure the variables palette is not open.
Is there data in at least the variable and formula fields?
I'm using V21 platinum >
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

lcone60


lcone60

Well, after more experimentation, the variables list feature is somewhat "strange". If you open the drawing (A) with the variables saved prior, open the variables palette, the variables list is intact, then open an additional drawing (B), the variables list clears out and is empty even if you reopen the original (A) drawing with the windows icon in the main menu bar. If you close everything out (including the variables palette) and exit, then reopen TC, open (B) drawing, open the variables palette, the variables list is empty, if you then reopen (A) the list reappears. I seams that if you ever open a drawing other than (A) you have to exit and restart the computer if you want to open (A) with the list intact, i.e. the list is saved with the drawing but is only available if you open it first and keep it open w/o switching to or opening another drawing. I think someone at TC needs to perform a fix!

ttreker

It is worse than what was described above. You loose the variables if all you do is switch to a paper space and then back to model space. It pretty much makes using variables a complete waste of time.

Christopher C. Mills
-TurboCAD Deluxe 21.2 64 bit
-Windows 7
-Dell Precision M4600 Intel Core i7-2720QM CPU
   @2.20GHz, 4 Cores, 8 Logical
-NVIDIA Quadro 2000M

Dean

#5
Quote from: ttreker on November 17, 2014, 04:30:09 AM
It is worse than what was described above. You loose the variables if all you do is switch to a paper space and then back to model space. It pretty much makes using variables a complete waste of time.

This might be as designed and a limitation with the deluxe version. I’ll verify this with Imsi.
I haven’t experienced any of these type of issues using V21.2 platinum.
Though you can use (in Deluxe)the palette as a calculator, The variables primary function (in Platinum) are to store the dimensional constraint values which drive objects. Deluxe doesn’t have constraints. If you want to store formulas with a drawing (in deluxe) use multi text or insert ole > excel file.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

ttreker

Again, thanks for your reply, Dean. I was planning on replying to this myself as I appear to have learned a trick that works around the problem and probably sheds light on its cause. First, let me point out the following:

1) I am a Deluxe user. I don't have access to constraints. I am not judging this feature based on how the higher end products use variables. I am judging it based on how the manual says I can use variables. The description in the manual is pretty clear on how they can be used by a Deluxe user.
2) It's funny you should mention using text to store formulas as I attempted this just last night to store a cross reference table, using a Table object, and much to my dismay discovered copying from and pasting to a table cell appeared to be impossible. I will probably be turning this issue in too, as it dramatically reduces the usefulness of tables.
3) Text is of limited value although could be useful in some circumstances. For most, though, there would be way too many steps involved. It would almost certainly be easier to use pencil and paper if it comes to that.
4) Ole is absolutely untenable. It is almost never a useful solution to any problem. First and foremost, it ties my document to two separate programs. It is a profound resource hog for that and many other reasons.

Now the work-around I came up with. It's in this tip I just posted: http://forums.turbocad.com/index.php/topic,15376.0.html

The fact that there is a work-around should in no way at all preclude this from being addressed as a bug! Differing drawings opened up in MDI should not be clobbering each other.
Christopher C. Mills
-TurboCAD Deluxe 21.2 64 bit
-Windows 7
-Dell Precision M4600 Intel Core i7-2720QM CPU
   @2.20GHz, 4 Cores, 8 Logical
-NVIDIA Quadro 2000M

ttreker

Well, I went for a long time tonight using variables with only one drawing open. I went back and forth between paper space and still the variables remained, until just now. I had to shut down the TurboCAD instance that had the file opened to make them reappear, but it is worth noting (at least for any debugger investigating this issue) that I did *not* have to close the other instance of TC I had open to get the variables to return.

So to reiterate, having separate drawings (have only tested two at a time) opened in separate TC instances helps both with keeping the variables from disappearing as often as the multiple drawings opened in MDI mode, and it also keeps from having to close the other opened file whose variables remained in accessible. At this juncture I got far enough along using the variables for it to be practical to use them.

At least this is how things appear right now.  :)

BTW, another point to note for anyone that might be debugging this issue is that when the variables disappear they are none the less accessible in the calculator line. It is just the table of them that disappears. Another work around then might be to keep a list of the names and formulas in a multitext in Paper Space. Also, I believe (but I would have to verify this) that adding new variables to the empty table list after the variables have disappeared *appends* them to the list. The result is that when TurboCAD is closed and reopened, the original variables appears with the knew variables appended. I am pretty certain I saw this happen a few days ago.
Christopher C. Mills
-TurboCAD Deluxe 21.2 64 bit
-Windows 7
-Dell Precision M4600 Intel Core i7-2720QM CPU
   @2.20GHz, 4 Cores, 8 Logical
-NVIDIA Quadro 2000M

DTTurbocad

Thanks for the feedback, I need to discuss with development regarding the variables palette and Deluxe.   Besides the variables not saving I am unable to use variables like in versions of TC past and am not sure when/why this became the case.

Also regarding tables, besides the ability of copying from and pasting to a table cell, it would be good to get some more feedback on the specific table improvements you users would like to have.
Since OLE is becoming a less practical method for linking data to drawings

ttreker

Since you have expressed an interest in addressing issues, I am going to assemble a laundry list that I will post here. Thanks for you response!
Christopher C. Mills
-TurboCAD Deluxe 21.2 64 bit
-Windows 7
-Dell Precision M4600 Intel Core i7-2720QM CPU
   @2.20GHz, 4 Cores, 8 Logical
-NVIDIA Quadro 2000M