News:

Please remember to do a search before you ask a question!

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.

Custom Values in Properties

Started by ajkelsey, June 05, 2017, 07:27:47 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

ajkelsey

Are there predefined variables in TC that I can insert into the value column of a custom property?
-Using TurboCAD 2017 Pro Platinum

John R

It sounds like you want a Parametric Part (Parametric Part Script Editing), similar to what is found in the Library palette. I believe you have to create your own.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

ajkelsey

Actually, I'm trying to easily export part sizes. If I draw a 3D box, the information is available in properties and can easily be collected in a report or via the "create layout" tool. However, as soon as that 3D box is modified, it loses that ability. The information is still in the inspector bar, but how do I get that into a list of data? I'm trying to easily generate cut lists. It's frustrating to know that the information is already there, but I can't easily consolidate and export it.
-Using TurboCAD 2017 Pro Platinum

Torfinn

Maybe you want to use the Database tool.
go to Tools/ Database and create one for your use, it can select most of the values you want and put it out as a table in the drawing or export it to Excel i. e.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Darrel Durose

#4
I know what the OP means.

Using the Woodworking/Create Layout will not read a box that has been filleted.

I have never found a way of collecting the Size X, Size Y and Size Z using the database for ACIS Solids unless someone knows something I don't and can enlighten us please?

I seems that it should be a simple thing to collate these parameters but I have always ended up having say a box on a hidden layer that is grouped with a filleted box for example, to get the objects overall size..

Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Torfinn

Yeah, with ACIS i know, i struggle myself with that in my PPM's :)
I make fake in a different area that are the same size and use them for the info i want in the table. :)
And it is a very big frustration to see the info, but not being able to collect it.

Maybe the entety marker is possible to use ??.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Darrel Durose

Should we really have to use an entity marker that should be something really simple as a ACIS object bounds?

Not really used entity marker but I do not think these will work either from a quick look.

I remember Dan Hunting's Bill of Materials macro that as I remember did collect this size info - http://www.bcitool.com/TCDRC/?FLAuthor.htm

Not sure if it's still available from any website or even works with the latest versions of TC...
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Torfinn

I look at the Entety Marker and it seems to not have any options for collecting Acis info.
The link don't work, searced a bit but didn't find anything.
Don have a tutorial about it back in v 18, but guess the problem will be the same if it is Acis, it using boolean tools, so maybe ??

http://www.textualcreations.ca/Textual%20Creations%20Shopping%20Page.html#Bill_of_Materials_Tutorial

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Darrel Durose

#8
I did look at that Torfinn and Don used Custom to manually enter a ACIS object X, Y, Z size.

Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Torfinn

Yeah, i did think so, but hoping that maybe in 32 bit, so open tc 18 and it was not possible back then eigther.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

#10
Quote from: Darrel Durose on June 05, 2017, 04:56:16 PM
I know what the OP means.

Using the Woodworking/Create Layout will not read a box that has been filleted.

I have never found a way of collecting the Size X, Size Y and Size Z using the database for ACIS Solids unless someone knows something I don't and can enlighten us please?

I seems that it should be a simple thing to collate these parameters but I have always ended up having say a box on a hidden layer that is grouped with a filleted box for example, to get the objects overall size..

I agree, Daz.
When was the last time they made improvements to the tool.
It's pretty cool though for what it can do.
I mean you can draw in elevations 2d a full kitchen and get a cut list. It does report holes and curves within the polyline's boundaries.

For 3d objects the drafting palette combined with a database report does a good job. You need to "define fields".
    or
you can also create a database and use the database palette, as far as I know it works best in 32 bit. one of the reasons I still use 32 bit.
"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

ajkelsey

It seems so easy to make it available. I tried digging around the SDK to see if it was possible through that route, but that stuff is beyond my abilities.

The idea of drawing unmodified solids on a hidden layer seems like just as much work as keying in the dimensions for custom properties. We really shouldn't have to do things like that. I emailed TC, but they haven't responded and I don't think they will.
-Using TurboCAD 2017 Pro Platinum

Andy H

#12
Quote from: ajkelsey on June 06, 2017, 02:53:25 PM
It seems so easy to make it available. I tried digging around the SDK to see if it was possible through that route, but that stuff is beyond my abilities.

The idea of drawing unmodified solids on a hidden layer seems like just as much work as keying in the dimensions for custom properties. We really shouldn't have to do things like that. I emailed TC, but they haven't responded and I don't think they will.

If I understand this thread correctly, Alterations to the tools has been asked for previously including a proper BOM,  here is a 'long' thread on a similar subject back in 2011,  http://forums.turbocad.com/index.php/topic,6949.msg44377.html#msg44377.

One problem is that 3D ACIS 'size' isn't included in standard object properties even through the SDK, so as far as I can tell one would not be able to just enter a simple command like 'x size',  to do it via the SDK one could use the bounding box method, but even then is not a simple task to write a program for all circumstances and is further complicated if the x/y/z isn't the natural x/y/z (like when using the rotated box tool).

A very simple example macro of getting the size of ACIS solids drawn on the World workplane is - draw 3 boxes on the world workplane, explode once so they are all ACIS solids, give then each a name, paste the code into the macro palette,  select the three objects then run the macro.

OK its a bit of a rough way of doing it, just posting as a very simple example 
Option Explicit

Dim sel
Dim bbs
Dim bxmin
Dim bxmax
Dim Numsel
Dim W
Dim L
Dim H
Dim nme
Dim i
Dim gr

set sel = ActiveDrawing.Selection
Numsel = sel.count

If Numsel > 0 then

For i = 0 to Numsel-1
set gr = sel.item(i)
nme = gr.Name
set bbs = gr.CalcBoundingBox
set bxmax = bbs.max
set bxmin = bbs.Min
L = bxmax.x - bxmin.x
W = bxmax.y - bxmin.y
H = bxmax.z - bxmin.z

MessageBox ("Object Name = " & nme & vbnewline & vbnewline & "Length = " & L & " Width = " & W & " Height = " & H)
Next

End If

If Numsel = 0 then MessageBox("Nothing Selected")
Set gr = Nothing
Set sel = nothing
Set bbs = nothing
Set bxmin = nothing
set bxmax = nothing
   

Darrel Durose

#13
Thanks Andy  ;)

I was looking at Ruby as some Sketchup scripts could be modified to do the same thing..

Dean, Yeah the layout tool is good and it would be good if it included all objects to be complete..
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Dean

As to what John stated above using the parametric symbol though you can keep it simple and only create the part with the default parameters.
Position
rotation
Size
"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

ajkelsey

Andy,

Is there a way to have the result of your macro entered as a set of custom properties?
-Using TurboCAD 2017 Pro Platinum

Andy H

Quote from: ajkelsey on June 08, 2017, 05:28:15 AM
Andy,
Is there a way to have the result of your macro entered as a set of custom properties?

Sorry for late reply,  I had a look and to be honest Database/Reports  is not something I'm used to,  looking at the sdk it may be possible to create a custom property but I couldn't see how that could be put into a report, in fact I didn't notice anything in the sdk about reports (obviously I could have missed it),  probably the best person to ask if its possible would be IMSI support and for the attention of Kevan Chapman, he used to frequent the sdk section of the forum.

ajkelsey

Thanks, Andy. IMSI support has been very unresponsive.

-Using TurboCAD 2017 Pro Platinum