News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

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.

Blocks, Block Attributes, Etc.

Started by Alvin Gregorio, August 20, 2021, 04:57:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alvin Gregorio

Hello All.  This question is probably pointed at Nikki; but anyone else please contribute if you can.

Here's the scenario.
I was enlisted by an out-of-state (country, actually) architectural/engineering design firm to do some site survey work of a multi-building hotel campus, for a major remodel the firm is designing.  The firm has already completed over 90% of the as-built and remodel plans; they just need a bit more information.
I went to the site, and in addition to taking a bunch of measurements and notes, I took a lot of pictures.  I re-Named all the pictures so that will make some sense to the observers.  Most of the picture names I prefixed with a (*), * being a sequential capital letter of the alphabet [(A), then (B), then (C), ...]; the site concrete, curbing, etc. damage pictures I simply re-Named C1, C2, C3, C4, ...

I do not have the CAD files to work with.  But I do have the ARCHD sized PDF sheets.  I inserted the required sheets into separate ARCHD Paperspace sheets in TurboCAD.  Now I want to annotate them and show from where and in which direction each picture was taken.

I'm thinking of using a Circle with a Solid Brush triangle-pointer attached to it, with Text in the Circle, to make this indication-- formatted as a Block, then Rubber Stamped or otherwise copied.

I'm asking here:  What is the way to create this so that I can easily and quickly change the Text info/attribute within the Circle?

Thanks, Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

No quick fix Alvin
You used to be able to change attributes in the selection info palette - But they broke that.
So you have to go to properties to change them. -
As there is only one attribute it shouldn't be too painful.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Frank Ansuini

Quote from: Alvin Gregorio on August 20, 2021, 04:57:23 AM

I'm thinking of using a Circle with a Solid Brush triangle-pointer attached to it, with Text in the Circle, to make this indication-- formatted as a Block, then Rubber Stamped or otherwise copied.

I'm asking here:  What is the way to create this so that I can easily and quickly change the Text info/attribute within the Circle?

Thanks, Alvin
I had run into a similar situation so I will describe the method I used.  Draw the basic symbol, triangle and circle in your case, and make them a group.  Add the text, e.g. C1, to the circle using the text tool and make the whole thing a group.  Copy and rotate this group as needed.  To edit each insertion, select it and explode once to free the text.  Double click the text and it will appear in a property window where you can change it.

Frank
TC Dx 2018

Alvin Gregorio

Thanks for the input Nikki and Frank.

Frank-- If I used a version of your method, I'd use the Edit Tool to edit the Text in place within the (second-layer) Group, rather than Exploding.

Nikki--  I am using 2020 Platinum.  Is Blocks Attributes "broken", as you say, in 2020?  Or is it only most recently, in 2021?

I suppose a PPM_script/Parametic_Symbol would work for what I am wanting.  I'd have to dust off the cobwebs of my brain to write it; it would probably take me about an hour to write and test and revise the simple little thing.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

Ah I came back to tell you that I see that they have fixed the block attributes - and the selection info Palette issue.
I find the selection info palette quicker to use then properties - because for some reason the properties dialogue is slow on my machine.
And then I read Franks Answer.

I used to have a lot of blocks (facing in all directions) before I discovered ppms. Franks method is probably better.

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

Alvin you wrote a similar one before
I have it on my machine
You can't colour the triangle in with ppms.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

#6
Quote from: nikkipollard on August 20, 2021, 06:16:10 AM
Alvin you wrote a similar one before
I have it on my machine
You can't colour the triangle in with ppms.

Check this out Nikki.
I don't know yet how much of the SetProperties' <PropertyName>=<PropertyValue> is necessary; I haven't yet experimented with that.

.Item("TextSize") = false
.Item("PenScale") = 1.000000
.Item("PenStyle") = 1
.Item("BrushColor") = -5
.Item("BrushScale") = 1.000000
.Item("BrushAngle") = 0.000000
.Item("BrushStyle") = 1
.Item("TextStyle") = 0
.Item("ScaleSystem") = 2
.Item("Layer") = 1
.Item("Info") = ""
.Item("TextFont") = "Times New RomanC:\Program Files\IMSIDesign\TCW2020\Program64\Fonts\"
.Item("TextFormat") = 0
.Item("HatchCross") = 0
.Item("BrushDrawMode") = 0
.Item("PenAlignment") = 0
.Item("StyleTree") = 0
.Item("TextSize") = true
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

DonCW

Quote from: Alvin Gregorio on August 20, 2021, 04:57:23 AM
Hello All.  This question is probably pointed at Nikki; but anyone else please contribute if you can.

Here's the scenario.
I was enlisted by an out-of-state (country, actually) architectural/engineering design firm to do some site survey work of a multi-building hotel campus, for a major remodel the firm is designing.  The firm has already completed over 90% of the as-built and remodel plans; they just need a bit more information.
I went to the site, and in addition to taking a bunch of measurements and notes, I took a lot of pictures.  I re-Named all the pictures so that will make some sense to the observers.  Most of the picture names I prefixed with a (*), * being a sequential capital letter of the alphabet [(A), then (B), then (C), ...]; the site concrete, curbing, etc. damage pictures I simply re-Named C1, C2, C3, C4, ...

I do not have the CAD files to work with.  But I do have the ARCHD sized PDF sheets.  I inserted the required sheets into separate ARCHD Paperspace sheets in TurboCAD.  Now I want to annotate them and show from where and in which direction each picture was taken.

I'm thinking of using a Circle with a Solid Brush triangle-pointer attached to it, with Text in the Circle, to make this indication-- formatted as a Block, then Rubber Stamped or otherwise copied.

I'm asking here:  What is the way to create this so that I can easily and quickly change the Text info/attribute within the Circle?

Thanks, Alvin
Would the attachment work for you. The top and bottom text are Block Attributes, it was created in v2020 Platinum so it should be okay.
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Alvin Gregorio

Quote from: DonCW on August 20, 2021, 07:02:10 PM
Would the attachment work for you. The top and bottom text are Block Attributes, it was created in v2020 Platinum so it should be okay.

Hi Don.  Yes, that (sort of) works for me.  Thank You.

As Nikki said, the Block Attribute Value is not editable via Selection Info Palette (in my TC V2020Plat;44.4).  But just a double-click on the inserted Block brings up the Properties window where I can pretty easily change that Value.

I have never worked with Block Attributes.  Pretty handy.  There's still a lot about TurboCAD that is foreign to me.  Thanks again Don! -Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#9
Quote from: Alvin Gregorio on August 20, 2021, 06:29:27 PM
Quote from: nikkipollard on August 20, 2021, 06:16:10 AM
Alvin you wrote a similar one before
I have it on my machine
You can't colour the triangle in with ppms.

Check this out Nikki.
I don't know yet how much of the SetProperties' <PropertyName>=<PropertyValue> is necessary; I haven't yet experimented with that.

.Item("TextSize") = false
.Item("PenScale") = 1.000000
.Item("PenStyle") = 1
.Item("BrushColor") = -5
.Item("BrushScale") = 1.000000
.Item("BrushAngle") = 0.000000
.Item("BrushStyle") = 1
.Item("TextStyle") = 0
.Item("ScaleSystem") = 2
.Item("Layer") = 1
.Item("Info") = ""
.Item("TextFont") = "Times New RomanC:\Program Files\IMSIDesign\TCW2020\Program64\Fonts\"
.Item("TextFormat") = 0
.Item("HatchCross") = 0
.Item("BrushDrawMode") = 0
.Item("PenAlignment") = 0
.Item("StyleTree") = 0
.Item("TextSize") = true



This also works:  SetProperties(<Object>,"BrushStyle"=1);
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

DonCW

Quote from: Alvin Gregorio on August 20, 2021, 07:13:53 PM
Quote from: DonCW on August 20, 2021, 07:02:10 PM
Would the attachment work for you. The top and bottom text are Block Attributes, it was created in v2020 Platinum so it should be okay.

Hi Don.  Yes, that (sort of) works for me.  Thank You.

As Nikki said, the Block Attribute Value is not editable via Selection Info Palette (in my TC V2020Plat;44.4).  But just a double-click on the inserted Block brings up the Properties window where I can pretty easily change that Value.

I have never worked with Block Attributes.  Pretty handy.  There's still a lot about TurboCAD that is foreign to me.  Thanks again Don! -Alvin

Sorry Alvin. I attached the wrong symbol. This is a bit closer to what need
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Alvin Gregorio

Quote from: DonCW on August 20, 2021, 07:28:48 PM
...

Sorry Alvin. I attached the wrong symbol. This is a bit closer to what need

Cool.  Thanks Don.  I edited the Block:  Split the Circle into two arcs, horizontally at the center, then selected the top arc along with the lines that make up the arrow and Format/Create_Hatch.  Now that arrow is filled with Solid Black.

I'm going to save it to My Symbols in the Library.  -Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

#12
Hi Alvin for some very frustrating reason hatch doesn't work on polylines(it does for circles and ellipses) in ppms.
As soon as you explode the ppm the hatch is there.
I think it has something to do with the fact that the polyline isn't truly closed.

What you really want is an architectural marker with a custom shape. - And the ability to use letters,

Entity marks do something similar  but you need to do so much first.
You will also need to draw something to link the entity mark too. - a bit painful.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: nikkipollard on August 21, 2021, 08:50:12 AM
Hi Alvin for some very frustrating reason hatch doesn't work on polylines(it does for circles and ellipses) in ppms.
As soon as you explode the ppm the hatch is there.
I think it has something to do with the fact that the polyline isn't truly closed.

What you really want is an architectural marker with a custom shape. - And the ability to use letters,

Entity marks do something similar  but you need to do so much first.
You will also need to draw something to link the entity mark too. - a bit painful.

Nikki-- Can you provide me with a sample PPM script for a Polyline of which the Brush/Hatch will not apply upon initial insertion.  Please
Thanks, Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

Nikki is correct Alvin, it's a known bug that never will be fixed.
insert the ppm and explode it 1 time, note difference :)

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

Alvin Gregorio

Quote from: Torfinn on August 21, 2021, 09:40:27 AM
Nikki is correct Alvin, it's a known bug that never will be fixed.
insert the ppm and explode it 1 time, note difference :)

Torfinn

Oh.  The BrushStyle property will not work on "Rectangle"; but does work on "Polyline".  Nikki wrote "...doesn't work on polylines", which through me off.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

Opposite, it work on Rectangle but not Polyline, see what's rec and rec2 in the ppm.
That's why you cant get the filled arrow with arc in a ppm.

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

Alvin Gregorio

Does the Arc0 and Arc1 auxiliary functions within PPM Polylines work?

If Yes-- Why is it that sometimes Arc0 (for example) has 3 parameter values to define it, and sometimes it has only 2?  For example-- In a Help example, it has Arc0(XSize-R, YSize-R, R); but earlier it has an example Arc0(<cx>,<cy>).
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#18
Quote from: Torfinn on August 21, 2021, 10:17:58 AM
Opposite, it work on Rectangle but not Polyline, see what's rec and rec2 in the ppm.
That's why you cant get the filled arrow with arc in a ppm.

Torfinn

Why does SetProperties(result,"BrushStyle"=1); work with the PPM Polyline as shown in the attached video?
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

#19
Maybe the Fillet command close it ??, as by default the fillet is set to Make Polyline in TC

Torfinn
Edit;
Yes it do, i have a rectangle ppm file from 2016 where i use a fillet of 0.0001 and use Grass for brush in it.
BTW 1 is the first Brush in the list.
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

Alvin Gregorio

Quote from: nikkipollard on August 21, 2021, 08:50:12 AM
Hi Alvin for some very frustrating reason hatch doesn't work on polylines(it does for circles and ellipses) in ppms.
As soon as you explode the ppm the hatch is there.
I think it has something to do with the fact that the polyline isn't truly closed.
...

What has me perplexed Nikki is that some Polylines do accept and create the Brush.
One example is below, the lower output.
Script is also attached.

It just seems to me like there is something we can figure out to manipulate into accepting and displaying the Brush.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

DonCW

Quote from: Alvin Gregorio on August 20, 2021, 07:40:20 PM
Quote from: DonCW on August 20, 2021, 07:28:48 PM
...

Sorry Alvin. I attached the wrong symbol. This is a bit closer to what need

Cool.  Thanks Don.  I edited the Block:  Split the Circle into two arcs, horizontally at the center, then selected the top arc along with the lines that make up the arrow and Format/Create_Hatch.  Now that arrow is filled with Solid Black.

I'm going to save it to My Symbols in the Library.  -Alvin

That's great,
Did you manage to keep the Block Attribute
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

nikkipollard

#22
Torfinn might be onto something with the fillet. Being the reason .


//ppm fillet Hatch test
R=50 //Radius

d = R*cos(45)*2
P3=Polyline(Point(-d+1,0),
      Fillet(1),
Point(-R+1,0),
   Arc0(1,0),
   Point(R+1,0),
  Point(d+1,0),
Fillet(1),
Point(1,d),
  Fillet(1),
Point(-d+1,0),
  Fillet(1))

P4=SetProperties(P3,"BrushStyle" = "Solid")

P5=Move(P4,-1)

Output(P5)



This Works
Thank You Torfinn and Alvin. Not sure how small you can make the fillet - so that they are not noticeable.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

#23
Quote from: nikkipollard on August 21, 2021, 11:32:06 PM
Torfinn might be onto something with the fillet. Being the reason .

(code)


This Works
Thank You Torfinn and Alvin. Not sure how small you can make the fillet - so that they are not noticeable.

Thanks Nikki.  Was that script supposed to result in a Brush within the triangular portion?  Does it on your end?  It does not on mine.  Not upon initial insertion; only after Exploding the inserted PS once.

Below is one that works.  In case you can use it for exploring and testing.

F = Parameter("F - width", 3, LINEAR);
D = Parameter("D - height", 5.7, LINEAR);
Tf = Parameter("Tf - top thickness", 0.17, LINEAR);
Tw = Parameter("Tw - medium thickness", 0.26, LINEAR);

radius = Tf / 4;
angle = 10;
dy = F/2 * tan(angle);

result = Polyline(
   Point(-Tw/2, 0),
   Point(-Tw/2, D/2-Tf-dy), Fillet(radius),
   Point(-F/2, D/2-Tf), Fillet(radius),
   Point(-F/2, D/2),
   Point(F/2, D/2),
   Point(F/2, D/2-Tf), Fillet(radius),
   Point(Tw/2, D/2-Tf-dy), Fillet(radius),
   Point(Tw/2, -D/2+Tf+dy), Fillet(radius),
   Point(F/2, -D/2+Tf), Fillet(radius),
   Point(F/2, -D/2),
   Point(-F/2, -D/2),
   Point(-F/2, -D/2+Tf), Fillet(radius),
   Point(-Tw/2, -D/2+Tf+dy), Fillet(radius),
   Point(-Tw/2, 0)
              );

Brsh = SetProperties(result,"BrushStyle"=1);

Output(Brsh);
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#24
Quote from: DonCW on August 21, 2021, 11:11:14 PM
...

That's great,
Did you manage to keep the Block Attribute

Yes.  But I can't figure out how to change the size of the Text/font of the Block Attribute definitions.
Which is probably what led me onto the PPM scripting journey.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

#25
Yes it worked for me. It is really frustrating that we have to go through hoops to get things to work
Arcs with a 0 X value  don't work for me - so I offset the polyline a fraction and then move it at the end else I just get a triangle.
Did you do that?
It should have looked like this

I seem to remember when I was using the 32 bit version that arcs never worked.

I tried to explain the arc in the drawing
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: nikkipollard on August 22, 2021, 07:34:01 AM
Yes it worked for me. It is really frustrating that we have to go through hoops to get things to work
Arcs with a 0 X value  don't work for me - so I offset the polyline a fraction and then move it at the end else I just get a triangle.
Did you do that?
It should have looked like this

I seem to remember when I was using the 32 bit version that arcs never worked.

I tried to explain the arc in the drawing

Can you upload a version 2020 of the file please Nikki.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Quote from: nikkipollard on August 21, 2021, 08:50:12 AM
Hi Alvin for some very frustrating reason hatch doesn't work on polylines(it does for circles and ellipses) in ppms.
...
I think it has something to do with the fact that the polyline isn't truly closed.
...

So Nikki-- You had previously stated that Hatch (Brush) does not work within PPM scripted Polylines.  If you were to come across the subject again, would you state that?; if not, how would you state your response on the subject.

That is asked with sincerity (it sounds to have the potential to come across sarcastic or pointed)  -Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#30
What's further interesting-- and perhaps knowledge to be gained from it--

In a TurboCAD session using the PPM script below, I isolated the Fillet functions to their own lines.
Then inserted // in front of the "Fillet" to make them just comments.  Doing that from starting from the top incidence of "Fillet"; and "Update Parametric Part" after // each "Fillet" line.
  The inserted Parametric Symbol (PS) kept the Solid Brush.  Until...
  Until after I did (made that line a comment) the 5th instance of that Fillet function.

There's something to be learned from that, I suspect.

F = Parameter("F - width", 3, LINEAR);
D = Parameter("D - height", 5.7, LINEAR);
Tf = Parameter("Tf - top thickness", 0.17, LINEAR);
Tw = Parameter("Tw - medium thickness", 0.26, LINEAR);

radius = Tf / 1;
angle = 10;
dy = F/2 * tan(angle);

result = Polyline(
   Point(-Tw/2, 0),
   Point(-Tw/2, D/2-Tf-dy),
//Fillet(radius),
   Point(-F/2, D/2-Tf),
//Fillet(radius),
   Point(-F/2, D/2),
   Point(F/2, D/2),
   Point(F/2, D/2-Tf),
//Fillet(radius),
   Point(Tw/2, D/2-Tf-dy),
//Fillet(radius),
   Point(Tw/2, -D/2+Tf+dy),
Fillet(radius),
   Point(F/2, -D/2+Tf),
Fillet(radius),
   Point(F/2, -D/2),
   Point(-F/2, -D/2),
   Point(-F/2, -D/2+Tf),
Fillet(radius),
   Point(-Tw/2, -D/2+Tf+dy),
Fillet(radius),
   Point(-Tw/2, 0)
              );

Brsh = SetProperties(result,"BrushStyle"=1);

Output(Brsh);
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

DonCW

Quote from: Alvin Gregorio on August 22, 2021, 04:40:09 AM
Quote from: DonCW on August 21, 2021, 11:11:14 PM
...

That's great,
Did you manage to keep the Block Attribute

Yes.  But I can't figure out how to change the size of the Text/font of the Block Attribute definitions.
Which is probably what led me onto the PPM scripting journey.

Go to Edit Contents in Blocks, Highlight the text you want to edit, right click to open properties and you should be able to change the font and size there.
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Torfinn

Quote from: nikkipollard on August 21, 2021, 11:32:06 PM
Torfinn might be onto something with the fillet. Being the reason .

The decimal i used in my ppm from 2016 when this issue showed up in a tread from mpavelek was 0,0001
And that is a pretty small fillet in mm if you ask me :), at least i cant see it, not even when zoom in as far as TC let me, but still a workaround.
And i used it in every corner of the rectangle, don't now if we need that or is in enough to do it on the last one, looong time ago :)
Used "F = Fillet(0.0001)" and in the path i then used F instead

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

nikkipollard

Yes Alvin
I am always happy to be wrong. Especially when it helps me.
I like learning new things too.

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

Quote from: Torfinn on August 22, 2021, 12:29:25 PM
Quote from: nikkipollard on August 21, 2021, 11:32:06 PM
Used "F = Fillet(0.0001)" and in the path i then used F instead

Torfinn I just tried this. It works well Thankyou.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Nikki, or Torfinn, or sauerkraut, or anyone know why this script isn't resulting in the Polylline_with_Fillets having a Solid Brush?  It has the (what I thought were) required Fillets.

S=Parameter("Scale",1,
Interval(.01,1000000000));
//Units(1[in]);

R=(S/2);
C=Circle(R);
P=Polyline(
Point(R,0),
Point(R+(R*.34),0),
Point(0,R+R/2),
Point(-R-(R*.34),0),
Point(-R,0),
Point(-R,R),
Fillet(R-.0000000001),
Point(0,R),
Point(R,R),
Fillet(R-.0000000001),
Point(R,0));
Output(C,SP1);

SP1=SetProperties(P,
//"PenStyle"="$INVISIBLE",
"BrushStyle"="SOLID",
"PenColor" = 255 );
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

#36
You missed the fillet Alvin, the fillet in the end that close your symbol, not the ones that make the curve along the circle.
******************
S=Parameter("Scale",1,
Interval(.01,1000000000));
//Units(1[in]);

F=Fillet(0.0001)
R=(S/2);
C=Circle(R);
P=Polyline(
Point(R,0),
Point(R+(R*.34),0),
Point(0,R+R/2),
Point(-R-(R*.34),0),
Point(-R,0),
Point(-R,R),
Fillet(R-.0000000001),
Point(0,R),
Point(R,R),
Fillet(R-.0000000001),
F,
Point(R,0),
F);
Output(C,SP1);

SP1=SetProperties(P,
//"PenStyle"="$INVISIBLE",
"BrushStyle"="SOLID",
"PenColor" = 255 );
********************************************
This one will work

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

Alvin Gregorio

Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

Quote from: Alvin Gregorio on August 30, 2021, 12:43:22 PM
Thanks Torfinn

Your welcome Alvin
I zoomed in on the symbol, in inch you need to use
F=Fillet(0.00000001)

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