Experimenting with smartparts - Trees


So I tried some experimenting with the allplan smartpart, and I created a new tree symbol.
The big problem is that using this kinds smarparts you have little control of the rgb color of the fill. So I tried to make a method to see a preview of the color resulted. Yet this overwhelms me, you need advanced programming skills and good knowledge of the behaveiour of colors. Plus, because of this object modifies slower

Pièces-jointes (2)

img
Tree menu.png
Type: image/png
Téléchargé 692 fois
Size: 38,09 KiB
Type: application/octet-stream
Téléchargé 714 fois
Size: 360,42 KiB
1 - 3 (3)
  • 1

Hello

Very nice work you have done, bravo!

I have a question! With what tool or how did you fact to retrieve coordinates 5 and 6 digits after the decimal point of the models of trees?

The trick and the RGB encoding is a very good idea.

Just a word of advice, I would be you, I will at least reduce the weight of the images you have included in your program. Indeed, your macro will be heavy and more you slow the general environment of Allplan. The smartparts behave not as a classical macro more tu Mets more thou shalt do slow Allplan. the smartparts are duplicated each time and therefore consume more resources.

Do you never slow when that you place the smartparts furniture delivered by Nemetechek when there are many?

Maybe a bug to correct...

French to talk about Allplan Forum:
http://allplan.leforum.eu

olivier1

The coordinates of the lines and polylines are copied with the help of another program .Yet, now if I think better, there is simpler solution. At the time I began creating this object I couldn't import fills or polylines in the smartpart resources, but now you're allowed to do this. Plus, you are allowed to change their settings with the place index,1. So I made a example with a smartpart with imported resources which contain fills.
For the smartparts which seems to consume resources and slow down your computer one often explanation is the request of fonts from the parameter script for many allplan's smartparts. In fact if you create an array parameter with more than 100 values the smartpart will behave very slowly.

Pièces-jointes (2)

Type: application/octet-stream
Téléchargé 597 fois
Size: 203,01 KiB
img
imported resources.jpg
Type: image/jpeg
Téléchargé 608 fois
Size: 115,38 KiB
1 - 3 (3)
  • 1

https://campus.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter