We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2010-05-05 06:37 PM - last edited on 2023-05-17 07:43 PM by Gordana Radonic
2010-05-05 07:37 PM
2010-05-05 08:35 PM
GDL wrote:The use_current_attributes_flag
FRAGMENT2 fragment_index,
use_current_attributes_flag
The fragment with the given index is inserted into the 2D Full View with the current transformations.
use_current_attributes_flag: defines whether or not the current attributes will be used
0: the fragment appears with the color, line type and fill type defined for it.
1: the current settings of the script are used instead of the color, line type and fill type of the fragment.
2010-05-05 09:14 PM
Matthew wrote:GDL wrote:The use_current_attributes_flag
FRAGMENT2 fragment_index,
use_current_attributes_flag
The fragment with the given index is inserted into the 2D Full View with the current transformations.
use_current_attributes_flag: defines whether or not the current attributes will be used
0: the fragment appears with the color, line type and fill type defined for it.
1: the current settings of the script are used instead of the color, line type and fill type of the fragment.mightdo what you want. I don't know if it includes the background pen.
2010-05-06 12:54 AM
vfrontiers wrote:The FRAGMENT2 statement antedates the background pen function and it seems it hasn't been revised to accommodate it.
Just think it's funny that you can put a PEN statement or FILL statement in front of the FRAGMENT2 to control fills / pens but not background pen...
*wishlist*
2010-05-06 03:09 PM
vfrontiers wrote:Duane:
Can anyone tell me if it's possible to draw a fill in the 2d SYMBOL portion of a library part then use the script to adjust the background pen?
2010-05-06 03:54 PM
2010-05-06 04:22 PM
Michael wrote:Right... but then I won't have MODEL VIEW control over the fill as described in the original post...
Another way to do it would be to have the linework on say layer 1 of the symbol, and the fill on layer 2. When the fill is needed you need to issue 2 fragment2 commands. First set the fill to either Solid Fill or %100 and the pen for the fill to the background pen and issue the fragment2 command. Then set the fill and pen to the user selected fill and foreground pen and issue the fragment2 command.
2010-05-06 04:32 PM
David wrote:I've done this before (many, many years ago) and am going to try this again.vfrontiers wrote:Duane:
Can anyone tell me if it's possible to draw a fill in the 2d SYMBOL portion of a library part then use the script to adjust the background pen?
You can drag the fill from the 2D Symbol window into the 2D Script window, this will convert the fill to code using the POLY2_B{5} command that has fill_background_pen as one of its variables.
David