DGRL Posted April 7, 2018 Posted April 7, 2018 (edited) Dear coders Am busy playing with attributes and walked into something funny Have multiple ATTDEF'S i insert into model using lisp 2 of the 3 are aligned normal and 1 has the text hovering above the insert point All 3 of the attdefs are made with same routine and same mode ( multiline ) Does any of you know how to fix this? See attached pic Edited April 8, 2018 by DGRL Quote
rlx Posted April 8, 2018 Posted April 8, 2018 can't explain it either without real dwg / routine but maybe this (recent) link fixes that too? But if I would have to guess , first two stings have real bottom left alignment and the third one hasn't? http://www.cadtutor.net/forum/showthread.php?103497-Changed-font-style-by-block-editor-does-not-display-in-the-drawing.& Gr. Rlx Quote
dlanorh Posted April 8, 2018 Posted April 8, 2018 can't explain it either without real dwg / routine but maybe this (recent) link fixes that too? But if I would have to guess , first two stings have real bottom left alignment and the third one hasn't? http://www.cadtutor.net/forum/showthread.php?103497-Changed-font-style-by-block-editor-does-not-display-in-the-drawing.& Gr. Rlx It looks as if it is a text justification problem when creating the ATTDEF Justification for "IS" looks to be Left and the others "Bottom Left" or vice versa. Quote
DGRL Posted April 8, 2018 Author Posted April 8, 2018 attissue.dwg Here you have an dwg with few Multiline ATTDEF See the 4 circles and compare them with the others See their alignment in properties and then my initial post The code is use is simple vla-addattribute with the multi line mode acAttributeModeMultipleLine and the result is like this a few attdefs aligned with text on the blue square selection box and a few not Gr. DGRL Quote
rlx Posted April 8, 2018 Posted April 8, 2018 (edited) only difference I can see is in height and layer , 3.5 vs 3.0 , layer 0 vs 'text' so this is not logical captain, sooo , logic dictates there is only one conclusion possible : the good attributes are male and the rest is female because my wife also defies all logic... makes sense no? only other thing I can see when I wblock your 0-%-Title Block is the line spacing : text height: 3.0000 Line spacing: Multiple (1x = 5.0000) text height: 3.5000 Line spacing: Multiple (1x = 5.8333) but I guess that is to be expected? gr. Rlx Edited April 9, 2018 by rlx Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 @rlx Thanks for taking a look You do not see the same issue as the pic in my initial post? See the difference between "Title regel 1" and the project no. "17-00000" Their alignment is the same though when selected you see the "Title regel 1" hovering and the project number not Quote
rlx Posted April 9, 2018 Posted April 9, 2018 I see the same issue. But when I explode your titleblock, all attributes are the same , bottom-left , hovering a little , and all the text entities are just plain left. So maybe you should use left aligment and not bottom-left? And why the multiline? gr. Rlx Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 OK ok lol Why the Multiline Because I have some ATTDEFS that are multiline and they display also as multiline And try to BURST the block and see what the result is Quote
Roy_043 Posted April 9, 2018 Posted April 9, 2018 IMO the behavior you see is logical. The Multiline attribute has a bottom left alignment. If there are characters in the final line of the text that extend below the baseline, the baseline will not coincide with the alignment point. Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 I will test this at home but it sounds logical @Roy_043 Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 @Roy_043 I just checked in the dwg I uploaded here and removed 1 of these characters you mentioned and the text aligned how it should You are correct with what you said and I thank you for this Quote
rlx Posted April 9, 2018 Posted April 9, 2018 so , make it left (or middle left) and problem goes away... whish mine would go away , and with that I mean our IT department... now they've messed up (blocked) all script files (*.scr) ... well , maybe should be looking at this not as a problem but as a challenge... Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 @Roy_043 If I understand you correctly and looking at this image see below For all multi line objects the "BASELINE" is the alignment (except when having characters like G) and for all non multiline objects the "BOTTOM LEFT" is the alignment? http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-27030E1C-6480-4A64-BE0A-E72C1FFF2023 Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 @rlx, Just show them how long "normal" tasks are going to take after this decision . They will revert in what they think "earns money" for the business or is better. And if the do not want to revert then take all the time you need to do stuff manual again instead of partial automated And for Multi line ATTDEFS there is no alignment LEFT But issue is 'solved' already m8 thanks to Roy, Quote
rlx Posted April 9, 2018 Posted April 9, 2018 Glad Roy has solved your problem , just wish he could kill mine , oh , sorry I meant , solve haha Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 Where is (out of this world) Lee Mac when you need him?? I am sure he know how to do this. Can you still load LSP files? Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 @rlx Just make support ticked and acted as if your stupid Support ticket Dear IT Since today I encounter issues when using AutoCAD These 'issues' did not occurred last week Brief description of issue Last week I used the command SCR in AutoCAD to load some script files we use on our department to automate this work. Without the possibility of using these script files we can not do our work in the calculated time Since we calculate our product price based on what program we use we need to be able to execute an native command inside the programs we are allowed to use........ bla bla bla Quote
rlx Posted April 9, 2018 Posted April 9, 2018 This morning I downloaded a lisp file I posted yesterday and couldn't load any more. Had to first open it in notepad and then paste it in a blanc page in de visual lisp editor , could load it but gave all kind of weird exceptions and also couldn't save it. Then copied it to another folder from where I could still load a lisp file and then it finally worked... (probably some stupid folder / network rights thingy) oh what a joy for a Monday morning... awell, I'll manage it , like I always do , no stopping this dragon (yet) just wondering how long it takes before they're gonna block this site for me. Quote
rlx Posted April 9, 2018 Posted April 9, 2018 (edited) @rlx Just make support ticked and acted as if your stupid Support ticket Dear IT Since today I encounter issues when using AutoCAD These 'issues' did not occurred last week Brief description of issue Last week I used the command SCR in AutoCAD to load some script files we use on our department to automate this work. Without the possibility of using these script files we can not do our work in the calculated time Since we calculate our product price based on what program we use we need to be able to execute an native command inside the programs we are allowed to use........ bla bla bla Normally this should work you think... our 'semi' IT guy has to do this on a daily basis and I really respect him for not having a heart attack (yet). I think its policy , they want to outsource everything and only give as few network rights as possible... but I'll deal with this in my own way and so far I've always been able to find yet another backdoor or new way of writing my apps. Thanx for the sympathy :-) gr. Rlx Edited April 9, 2018 by rlx Quote
DGRL Posted April 9, 2018 Author Posted April 9, 2018 @rlx Respect for a person who acts and thinks like this Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.