Jump to content

Recommended Posts

Posted (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

attachment.php?attachmentid=63690&cid=1&stc=1

 

8Pj2ax362dIxEAAAAASUVORK5CYIIA

Capture11.PNG

Edited by DGRL
  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • DGRL

    15

  • rlx

    12

  • Grrr

    2

  • Roy_043

    2

Top Posters In This Topic

Posted Images

Posted
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.

Posted

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

Posted (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 by rlx
Posted

@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

Posted

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

Posted

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

Posted

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.

Posted

@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

Posted

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...

Posted

@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,

Posted

Glad Roy has solved your problem , just wish he could kill mine , oh , sorry I meant , solve haha

Posted

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?

Posted

@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

Posted

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.

Posted (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 by rlx
Posted

@rlx :winner:

 

 

Respect for a person who acts and thinks like this :notworthy:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...