Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Duplicate unID:1 error

Anonymous
Not applicable
I'm trying to get our V10 objects working in V12 and I get an error "Duplicate unID:1" when I load this object. How can I fix it? I think it was an error in V10 but for some reason we did't see the error box come up (we might have turned the error box off). I want to keep both of these text "placements" in the object.

Thanks,
Michele


DEFINE STYLE STYLE_1 "Arial", 35 * MIN (a, b), 7, 0

STYLE STYLE_1
PEN cpen
rot2 -symb_rotangle
unID = 1

HOTSPOT2 0, d_y,unID, d_x,1+128 : unID=unID+1
HOTSPOT2 -1, d_y,unID, d_x,3 : unID=unID+1
HOTSPOT2 d_x,d_y,unID, d_x,2 : unID=unID+1

HOTSPOT2 d_x, 0,unID, d_y,1+128 : unID=unID+1
HOTSPOT2 d_x, -1,unID, d_y,3 : unID=unID+1
HOTSPOT2 d_x,d_y,unID, d_y,2 : unID=unID+1


ADD2 d_x, d_y
TEXT2 0, 0, STR("%fi", GLOB_ELEVATION)
DEL 2

GOSUB 12

RETURN

12: !Movable text for every object variation

!!!!!THis is moveable text hotspot and text for more_text

STYLE STYLE_1
PEN cpen
rot2 -symb_rotangle!!This rotate text to follow object
unID = 1

HOTSPOT2 0, dd_y,unID, dd_x,1+128 : unID=unID+1!!!THis is moveable hotspot placement
HOTSPOT2 -1, dd_y,unID, dd_x,3 : unID=unID+1
HOTSPOT2 dd_x,dd_y,unID, dd_x,2 : unID=unID+1

HOTSPOT2 dd_x, 0,unID, dd_y,1+128 : unID=unID+1
HOTSPOT2 dd_x, -1,unID, dd_y,3 : unID=unID+1
HOTSPOT2 dd_x,dd_y,unID, dd_y,2 : unID=unID+1

ADD2 dd_x, dd_y
TEXT2 0", 0",(more_text)!!the 0",0" is text hotspot placement
DEL 2
RETURN
3 REPLIES 3
Anonymous
Not applicable
The information referred to in this thread may explain what is happening
and suggests a fix.
http://archicad-talk.graphisoft.com/viewtopic.php?t=23833
Peter Devlin
Anonymous
Not applicable
There are two occurrences of the line:

unID = 1

Just delete the second one.
Anonymous
Not applicable
Oooooooooo!

Thanks so much. Such a simple answer to such a frustrating beep noise that used to come up when I got the error.

Thanks again,
Michele