Door Label Position

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-08-16
10:47 AM
- last edited on
2023-05-24
11:03 AM
by
Rubia Torres
2006-08-16
10:47 AM
I've spent much of this afternoon looking through posts regarding label positioning but haven't quite found (or at least understood) a solution .. so sorry in advance for yet another post about this.
One topic particularly useful is this
However i'm not sure if the label position logic is different depending on what is being labeled because what I found when creating my label was the coordinate array was the opposite of what Frank and the others in that post have found. That is x1,y1 (LABEL_POSITION[1][1] & [1][2]) gave the anchor location of the marker, with the 2nd being the coordinates of the midpoint and the 3rd being the final coordinates of the arrowhead (see attached image).
Using the script below I have managed to reset the markers position to the center of the door ... almost:
resetx=LABEL_POSITION[2][1]+LABEL_POSITION[3][1]
resety=LABEL_POSITION[2][2]+LABEL_POSITION[3][2]
ADD2 resetx,resetx
This moves the marker to the location in the second image (Text Anchor is 3 .. moving it somewhere else after i get this right). Relative to the center of the door on the reference line of the wall this position is 0,0.207 or 207mm back from the reference line.
I cannot work out what this 207mm dimension is generated by. It is not affected by wall thickness, door frame thickness, rotation ... nothing I have tried in the wall or door settings has had any effect on this.
My understanding is the above position reset
But im obviously missing something .. any ideas what this is?
2 REPLIES 2
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-08-16 03:46 PM
2006-08-16
03:46 PM
Why are you using the label tool instead of a door/window marker?
The label position parameters are a bit mind boggling. The door/windor marker subtype appears by default at the center of the opening (which is the internal local origin of the door/window).
Programming the marker to align automatically with the door leaf is very tricky (I still haven't had time to sort it myself). The simplest way to do it is with two parameters for XY and one for angle with some dynamic hotspots to allow the user to fit it up properly.
The label position parameters are a bit mind boggling. The door/windor marker subtype appears by default at the center of the opening (which is the internal local origin of the door/window).
Programming the marker to align automatically with the door leaf is very tricky (I still haven't had time to sort it myself). The simplest way to do it is with two parameters for XY and one for angle with some dynamic hotspots to allow the user to fit it up properly.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-08-17 02:17 AM
2006-08-17
02:17 AM
Matthew wrote:Thanks Matthew,
Why are you using the label tool instead of a door/window marker?
Thats a very good question ...
NFI!

Fortunately i hadn't spent much time yesterday actually working on the script, more just researching all the posts i could about labeling, generating door numbers from zones etc - this is my first go an writing any label type objects.
Unfortunately none of them pointed out the bleeding obvious!
Matthew wrote:We already had a marker which did this but it was actually part of the doors 2D script. It was done this way at the time as noone had any idea how the markers worked nor the time to work it out. Maintaining this in all the door objects we use isn't very efficient so im now trying to fix it. We'll see how it goes ...
Programming the marker to align automatically with the door leaf is very tricky (I still haven't had time to sort it myself). The simplest way to do it is with two parameters for XY and one for angle with some dynamic hotspots to allow the user to fit it up properly.