Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2004-10-29
04:07 PM
- last edited on
2023-05-25
06:04 PM
by
Rubia Torres
2004-11-01 09:38 AM
Is there any way to have my Elevation markers have a background fill?
2004-11-01 12:36 PM
2004-11-01 04:14 PM
IF gs_cont_pen=0 THEN gs_cont_pen=1The poly2_b is properly synatexed: n, frame fill, fill pen, FILL BACKGROUND PEN, xys1, xys2...xysn
add2 gs_markeroffset,0
pen gs_cont_pen
define solid_fill "markerfill"
fill "markerfill"
dist=AC_MarkerSize/1000*glob_scale
mark_rad=AC_MarkerSize/1000*glob_scale*sqr(2)/2
unID=1
hotspot2 0,0,unID : unID=unID+1
hotspot2 0,dist,unID : unID=unID+1
gs_fill_pen=1 : gs_back_pen=91
IF gs_sidefill=1 then
hotspot2 dist,0,unID : unID=unID+1
hotspot2 -dist,0,unID : unID=unID+1
for i=1 to 2
poly2_b 5, 7, gs_cont_pen, gs_cont_pen,
-dist, 0, 1,
-mark_rad, 0, 1,
0, 0, 901,
mark_rad, -45, 4001,
-dist, 0, -1
mul2 -1,1
next i
del 2
ENDIF
poly2_b 5, 7, gs_cont_pen, gs_cont_pen,
0, dist, 1,
mark_rad*sqr(2)/2, mark_rad*sqr(2)/2, 1,
0, 0, 901,
mark_rad, 90, 4001,
0, dist, -1
circle2 0,0,mark_rad
2004-11-01 06:59 PM
Nathan wrote:The script you clipped here does not include a background mask. The part you have highlighted in red is the pointer. A fill mask would take the generic form:gs_fill_pen=1 : gs_back_pen=91The poly2_b is properly synatexed: n, frame fill, fill pen, FILL BACKGROUND PEN, xys1, xys2...xysn
poly2_b 5, 7, gs_cont_pen, gs_cont_pen,
0, dist, 1,
mark_rad*sqr(2)/2, mark_rad*sqr(2)/2, 1,
0, 0, 901,
mark_rad, 90, 4001,
0, dist, -1
The blue script defines the proper pens ( in blue, background ground pen: gs_back_pen=91) but the writer of the part didn't bother to use it (red, angry red).
POLY2_B 2, frame_fill, fill_pen, fill_background_pen, 0, 0, 901, radius, 360, 4001This creates a circular fill without an outline. If something like this is not in the part then there is no mask.
WHO DO I SHOUT AT TO GET GRAPHISOFT TO PROPERLY DEBUG THEIR PARTS?!! I'M NOT PAID TO, AND IT EATS UP MY PRECIOUS TIME.I agree that Graphisoft needs to take steps to improve the quality of the libraries overall. Both their own and the 3rd party libraries. (I don't think that GS did the NCS parts in-house, but I may be mistaken.) This will require both establishing and publishing better standards for coding and organization, as well as providing better tools and support for the 3rd parties. I am hopeful that we will see some improvement in this area in the near future.
And besides, I have a bigger problem now that the markers themselves have disappeared to a different dimension. See my cry for help about vanishing markers, which are not mis-layered, or display-optioned off, but have been told to go somewhere to the infinite beyond. Saving the project to 8.1 did not fix it.
-Nathan Brauer
2004-11-01 07:41 PM
Matthew wrote:Matthew is correct about the absence of a mask and in pointing out that the part of the script you colored red has nothing to do with the fill in the circle.
The script you clipped here does not include a background mask. The part you have highlighted in red is the pointer. A fill mask would take the generic form:
POLY2_B 2, frame_fill, fill_pen, fill_background_pen, 0, 0, 901, radius, 360, 4001This creates a circular fill without an outline. If something like this is not in the part then there is no mask.
define solid_fill "markerfill" fill "markerfill"
poly2_a 2, 2, 91, 0,0,901, mark_rad,360,4001this way you just say "use pen 91 for the fill"
2004-11-01 09:07 PM
2004-11-02 10:18 AM
woodster wrote:Matthew wrote:
But the object's the script sets the fill for closed polygons as a solid filldefine solid_fill "markerfill" fill "markerfill"
poly2_a 2, 2, 91, 0,0,901, mark_rad,360,4001
this way you just say "use pen 91 for the fill"
poly2_a 2, 2, 91, 0,0,901, mark_rad,360,4001" but instead of the "91" use a param. value ("fill_background_pen" maybe) so that the fill's colour can be changed if needed in the future, or be none by putting the value of 0.
2004-11-02 12:57 PM
Susanne wrote:
With the "define" it seems to me that there is a problem in the lib. part's Master script - the definition of that specific "markerfill" is missing or wrong.
Wouldn't it be easier to just rim off those 2 lines and use the
"poly2_a 2, 2, 91, 0,0,901, mark_rad,360,4001"
but instead of the "91" use a param. value ("fill_background_pen" maybe) so that the fill's colour can be changed if needed in the future, or be none by putting the value of 0.