VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

insert/place text with ghosting

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
171 Views, 5 Replies

insert/place text with ghosting

I have a series of macros for the user to place symbology (blocks, plines,
etc.). Some of this symbology has standard labels that go with it, such as
MB next to a mailbox and CONC in a concrete area.
What I would like to happen is this: After placing the symbology, I would
like to attach the standard label (single line text) to the cursor (The
ghosting) to allow the user the ability to place this label in the best
location in regards to the plan. Everthing that I've found so far requires
the placment point before I can do anything else. Anyone have any ideas???

-Rich
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

how about 0,0, then modify placement point based on user selection?

"Richard Tiede" wrote in message
news:B10185C9E3FEB13E629630C89E682E8D@in.WebX.maYIadrTaRb...
> I have a series of macros for the user to place symbology (blocks, plines,
> etc.). Some of this symbology has standard labels that go with it, such as
> MB next to a mailbox and CONC in a concrete area.
> What I would like to happen is this: After placing the symbology, I would
> like to attach the standard label (single line text) to the cursor (The
> ghosting) to allow the user the ability to place this label in the best
> location in regards to the plan. Everthing that I've found so far requires
> the placment point before I can do anything else. Anyone have any ideas???
>
> -Rich
>
>
Message 3 of 6
Anonymous
in reply to: Anonymous

I've thought of that, but I can't seem find a way to get the ghost image of
the text on the cursor. I would like the user to have the visual feedback of
how much space the text string takes up so they can place it in a clear area
of the plan. This would be similar to what you would get if you manually
used the move command on the piece of text.
If I could find a way to call move command on the text (not the move method
of the text object) I could then place it at 0,0 and use the move command.


"Kevin Terry" wrote in message
news:6994A2C01829EFF69F30104F52CEC2B2@in.WebX.maYIadrTaRb...
> how about 0,0, then modify placement point based on user selection?
>
> "Richard Tiede" wrote in message
> news:B10185C9E3FEB13E629630C89E682E8D@in.WebX.maYIadrTaRb...
> > I have a series of macros for the user to place symbology (blocks,
plines,
> > etc.). Some of this symbology has standard labels that go with it, such
as
> > MB next to a mailbox and CONC in a concrete area.
> > What I would like to happen is this: After placing the symbology, I
would
> > like to attach the standard label (single line text) to the cursor (The
> > ghosting) to allow the user the ability to place this label in the best
> > location in regards to the plan. Everthing that I've found so far
requires
> > the placment point before I can do anything else. Anyone have any
ideas???
> >
> > -Rich
> >
> >
>
>
Message 4 of 6
Anonymous
in reply to: Anonymous

Richard,

Create the text at 0,0 (or even the insertion point of the object), and then simply use the MOVE command? At least that is the method I use on a routine, it's in LISP right now - haven't moved it over into VBA yet, and at this point don't really have a need to. (i.e. if it ain't broke...)

Jason
Message 5 of 6
Anonymous
in reply to: Anonymous

Oh yeah, another method I use at times - make a block in your common blocks directory for all users and then just insert that...
Message 6 of 6
Anonymous
in reply to: Anonymous

I have a lot of blocks just like yours that most of the time have the same text attached. I have made them all blocks with attributes. You can set the attributes to have a default (Ex. MB for Mailbox). I place the attribute where it works most of the time. Then when it is in conflict with something in the plan you can select the block and grip edit the line of text to a new location without exploding the block. Good Luck
Daryl

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost