TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software’s can be used with TurboCAD.


Custom Values in Properties
Read 813 times
June 05, 2017, 07:27:47 AM
Are there predefined variables in TC that I can insert into the value column of a custom property?

Logged
-Using TurboCAD 2017 Pro Platinum


* June 05, 2017, 03:06:58 PM
#1
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.

Logged
John R.

V17—V21, 2015, 2016, 2017
Designer, Deluxe, Expert, Basic, Platinum
RedSDK enabled
Windows 10, 64-bit


June 05, 2017, 03:22:20 PM
#2
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.

Logged
-Using TurboCAD 2017 Pro Platinum


* June 05, 2017, 03:42:09 PM
#3
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

Logged
V18, V19, V20, V21, 2015 Pro. Platinum
Deluxe V20, V21, 2015
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


June 05, 2017, 04:56:16 PM
#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..

« Last Edit: June 05, 2017, 05:24:04 PM by Darrel Durose »

Logged
Daz...
V2016 64-Bit & 32 Bit Platinum Edition - Build 61.2
RedSDK Only in 64 bit & 32 bit = RedSDK & Lightworks
TurboCAD user since V3 and Turbocad 3D V1.
OS Windows7 Pro 64bit Lenovo W701 Laptop, 12GB Ram, 2 x 128 SSD harddrives, NVIDIA Quadro FX 2800M Graphics, Intel i7 CPU...


* June 05, 2017, 05:33:15 PM
#5
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

Logged
V18, V19, V20, V21, 2015 Pro. Platinum
Deluxe V20, V21, 2015
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


June 05, 2017, 05:50:59 PM
#6
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...

Logged
Daz...
V2016 64-Bit & 32 Bit Platinum Edition - Build 61.2
RedSDK Only in 64 bit & 32 bit = RedSDK & Lightworks
TurboCAD user since V3 and Turbocad 3D V1.
OS Windows7 Pro 64bit Lenovo W701 Laptop, 12GB Ram, 2 x 128 SSD harddrives, NVIDIA Quadro FX 2800M Graphics, Intel i7 CPU...


* June 06, 2017, 02:30:52 AM
#7
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

Logged
V18, V19, V20, V21, 2015 Pro. Platinum
Deluxe V20, V21, 2015
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


June 06, 2017, 02:51:18 AM
#8
I did look at that Torfinn and Don used Custom to manually enter a ACIS object X, Y, Z size.

« Last Edit: June 06, 2017, 02:57:05 AM by Darrel Durose »

Logged
Daz...
V2016 64-Bit & 32 Bit Platinum Edition - Build 61.2
RedSDK Only in 64 bit & 32 bit = RedSDK & Lightworks
TurboCAD user since V3 and Turbocad 3D V1.
OS Windows7 Pro 64bit Lenovo W701 Laptop, 12GB Ram, 2 x 128 SSD harddrives, NVIDIA Quadro FX 2800M Graphics, Intel i7 CPU...


* June 06, 2017, 03:09:43 AM
#9
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

Logged
V18, V19, V20, V21, 2015 Pro. Platinum
Deluxe V20, V21, 2015
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* June 06, 2017, 09:27:18 AM
#10
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.
« Last Edit: June 06, 2017, 09:30:52 AM by Dean »

Logged
"What do I know, I'm still learning"..
Windows 7 64 bit HP > on a stock HP laptop with 4gb-2.4 GHz.Turbocad 2016-2017, TurboCad Platinum 21(Best working version,IMHO) Using Lightworks for reliability/stability and testing redsdk, Anilab lab 5, Renditioner Pro V3. ATI Mobility Radeon HD 4500/5100


June 06, 2017, 02:53:25 PM
#11
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.

Logged
-Using TurboCAD 2017 Pro Platinum


* June 06, 2017, 07:19:04 PM
#12
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 
Code: [Select]
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
   
« Last Edit: June 07, 2017, 01:22:16 AM by Andy H »

Logged


June 07, 2017, 01:40:17 AM
#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..
« Last Edit: June 07, 2017, 01:49:34 AM by Darrel Durose »

Logged
Daz...
V2016 64-Bit & 32 Bit Platinum Edition - Build 61.2
RedSDK Only in 64 bit & 32 bit = RedSDK & Lightworks
TurboCAD user since V3 and Turbocad 3D V1.
OS Windows7 Pro 64bit Lenovo W701 Laptop, 12GB Ram, 2 x 128 SSD harddrives, NVIDIA Quadro FX 2800M Graphics, Intel i7 CPU...


* June 07, 2017, 04:32:48 AM
#14
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

Logged
"What do I know, I'm still learning"..
Windows 7 64 bit HP > on a stock HP laptop with 4gb-2.4 GHz.Turbocad 2016-2017, TurboCad Platinum 21(Best working version,IMHO) Using Lightworks for reliability/stability and testing redsdk, Anilab lab 5, Renditioner Pro V3. ATI Mobility Radeon HD 4500/5100


June 08, 2017, 05:28:15 AM
#15
Andy,

Is there a way to have the result of your macro entered as a set of custom properties?

Logged
-Using TurboCAD 2017 Pro Platinum


* June 08, 2017, 02:52:48 PM
#16
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.

Logged


June 09, 2017, 06:31:58 AM
#17
Thanks, Andy. IMSI support has been very unresponsive.


Logged
-Using TurboCAD 2017 Pro Platinum