Text styles not saving in custom tool Pallett block

Text styles not saving in custom tool Pallett block

cengineerclay1
Participant Participant
1,219 Views
17 Replies
Message 1 of 18

Text styles not saving in custom tool Pallett block

cengineerclay1
Participant
Participant

I have created some blocks on a custom tool pallet and pointed the source file to a directory where multiple computers can use it. I have the style set in all of the blocks as not annotative. However, when I open a new file and try to use the block from the tool pallet, it reverts back to annotative. Why am I losing the style settings. In the source file, the style settings for the text is set to a custom style named dredge. When I open and use the block in another file, it reverts back to annotative.

0 Likes
1,220 Views
17 Replies
Replies (17)
Message 2 of 18

Kent1Cooper
Consultant
Consultant

Then I must assume the Text Style called "dredge" is an Annotative Style in the target drawings.  Check the definition of that Style in your template file(s) and ensure that it's not Annotative there, so it will not be in new drawings you base on that/those.  You will need to change it in existing drawings individually.

Kent Cooper, AIA
0 Likes
Message 3 of 18

cadffm
Consultant
Consultant

Hi,

 

and you are sure that in your TARGET file is no style with the name "dredge" before inserting your Block?

(named objects like styles, layers or blockdefinition won't import, if there is already an object of the same kind, with the same name)

What program you are using?

Sebastian

0 Likes
Message 4 of 18

cengineerclay1
Participant
Participant
The template file has the same style. It is labeled as dredge and is not
annotative. When I use the template file, it reverts back to the annotative
style.
0 Likes
Message 5 of 18

clindner
Advocate
Advocate

If (somehow) the "dredge" style already exists (and is annotative) in the new file, the block will use the new drawing's style, not the style defined in the block itself.  This will usually be reported on the command line as something like "Duplicate definitions will be ignored". 

 

Do this: when you start a new file (technically you don't open a "new" file 😉), see if there's already a dredge style defined. 

 


Please use the Accept as Solution or Kudo buttons when appropriate

Chris Lindner
CAD Technology Consultant @ onebuttoncad.com
AUGI Board of Directors

0 Likes
Message 6 of 18

Kent1Cooper
Consultant
Consultant

@cengineerclay1 wrote:
The template file has the same style. It is labeled as dredge and is not annotative. When I use the template file, it reverts back to the annotative style.

If I understand correctly that there is a non-Annotative Style called "dredge" in a template file, but that when you make a new drawing based on that file, that Style ends up being Annotative, then the only conclusion I can come to is that there's some routine being triggered to run in every drawing, such as by an acaddoc.lsp file, that is changing the definition of that Style.  If by "use the template file" you mean something other than "make a new drawing with the template file as the basis," tell us more about exactly how you make new drawings that have this problem.

Kent Cooper, AIA
0 Likes
Message 7 of 18

cengineerclay1
Participant
Participant
Yes you are correct. This is a new copy of Autocad Civil 3D 2024. I have not installed any lsp files.
0 Likes
Message 8 of 18

cengineerclay1
Participant
Participant

On the custom tool pallete, I have a block called MLW EL X.XX. The source file the block pulls from is called Linked Drawing. In the linked drawing file is where I created the block from. I used a text style called DREDGE in the block. When I open my template file and try to use the block from within the tool pallete, the text style is reverted back to a style called Annotative and it jumbles the text up since the desire is to not have it annotative. It needs to stay the same scale no matter what scale I have in a viewport.

0 Likes
Message 9 of 18

Kent1Cooper
Consultant
Consultant

I think it's time for you to post both "the source file the block pulls from" and "my template file" for us to look at the Text Style definitions in each.

 

And when you say "reverted back to a style called Annotative," does "called" mean that it's actually named "Annotative" rather than "dredge," or just that it is identified as Annotative by the check box in the Text Style dialog box?

 

And when you say "open my template file and try to use the block," are you really talking about using the Block inside the template file, or about using it in another drawing that was created using that template file as a basis?

Kent Cooper, AIA
0 Likes
Message 10 of 18

cengineerclay1
Participant
Participant

See attached. I open a new file pulling from the template file below. The attachment labeled Linked Drawing is where the source file is in the block and also is where the block was created with the text that has the style DREDGE. The Template file does not have a style labeled as DREDGE. When I create a new file from the template, the text style within the block reverts to a style labeled as ANNOTATIVE.

0 Likes
Message 11 of 18

Kent1Cooper
Consultant
Consultant

When I create a new drawing based on that template, that Style is not Annotative:

Kent1Cooper_0-1703708663759.png

Something else must be happening, but I don't have Civil3D nor your macro for using the Block [how are you pulling a Block definition out of another drawing with a macro?].

NEVER MIND.  That "MLW EL X.XX" Block is already defined in the template file, and sure enough, the Attribute in it is in a Text Style called "Annotative," which, as the name implies, is.  So how is your macro attempting to pull a different definition from the other drawing?

Kent Cooper, AIA
0 Likes
Message 12 of 18

cengineerclay1
Participant
Participant
We are pulling the blocks from a source file pointed to a google drive
folder we have.
0 Likes
Message 13 of 18

Kent1Cooper
Consultant
Consultant

That doesn't answer the "how" part of the question.

Kent Cooper, AIA
0 Likes
Message 14 of 18

cengineerclay1
Participant
Participant
I'm not familiar with macros. All I know is the blocks are on one file and
the blocks are sourced to that one file. When I select a block from a
custom tool pallete I created, I place it on the screen and it works just
fine in the original file and it doesn't in a new file I create from the
template file. I'm just learning with blocks.
0 Likes
Message 15 of 18

Kent1Cooper
Consultant
Consultant

@cengineerclay1 wrote:
.... When I select a block from a custom tool pallete I created, I place it on the screen and it works just
fine in the original file and it doesn't in a new file I create from the template file. ....

Right-click on the Tool Palette button you select to place it, and pick Properties... at the bottom.  What does the line called Command string have in it?

Kent Cooper, AIA
0 Likes
Message 16 of 18

cengineerclay1
Participant
Participant

It says "Duplicate definition of block MLW EL X.XX ignored"

0 Likes
Message 17 of 18

shorelinebuildsdocks
Participant
Participant

This was the problem. I had three block definitions. One of them was in the template file and the text was set to the Annotative style.

0 Likes
Message 18 of 18

Kent1Cooper
Consultant
Consultant

@cengineerclay1 wrote:

It says "Duplicate definition of block MLW EL X.XX ignored"


If that was supposed to be in reply to Message 15, it doesn't answer the question that was asked.  Read it more carefully and try again.

Kent Cooper, AIA
0 Likes