Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Attributes default

21 REPLIES 21
Reply
Message 1 of 22
Stemdriller
2147 Views, 21 Replies

Attributes default

 

Hi all

 

I have just added all my attributes to the main template, but the default for the attributes is four dashed lines ----

so if the attribute has data it puts it in, but if it does not it just uses these dashed lines and I cannot seem to remove them. I don't want to make them invisible and don't particualaly want to have to use code, but I have never come accross this before and I am hoping there is a simple answer to this.

 

I have attached a screenshot.

 

Hope someone can help

 

Regards

 

Gareth

 

 

 

 

21 REPLIES 21
Message 2 of 22
sthompson1021
in reply to: Stemdriller

Hi, if you open the block attribute manager and select the attribute to edit, can you erase the default value?

Message 3 of 22
Stemdriller
in reply to: sthompson1021

Hi

 

Thanks for responding, I have already tried that but doing so just makes the property blank!

 

I going to have to try and do it programmatically i think.

 

Thanks anyway

 

Gareth 

Message 4 of 22

Have you tried BATTMAN command to edit the default value ?

Message 5 of 22
sthompson1021
in reply to: Stemdriller

What do you want it to show before it has a value, or are you just looking to have a box you can click in?

Message 6 of 22
Stemdriller
in reply to: sthompson1021

Just want it to be blank until a value has been entered.

 

Message 7 of 22
sthompson1021
in reply to: Stemdriller

Do you have the attribute set as constant?

Message 8 of 22
Stemdriller
in reply to: sthompson1021

Constant is set to 'No'

Message 9 of 22
steve216586
in reply to: Stemdriller

Do you have a problem using "space" for those attributes where there is no value? In that way you can keep the dashes as something to click on for editing and also queues that a value should be entered if known. But if a value is not known, then a user could simply input a space to occupy that attribute, and in turn which won't plot.

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 10 of 22
Stemdriller
in reply to: steve216586

Tried all that.

 

The values come from Vault, the data does appear in the drawing properties, but unless the ---- is showing they will not show on the border.

 

It always seems like 2 steps forward 5 steps back with AutoCAD it's a right chuffing pain in the preverbial!

 

 

Message 11 of 22
Stemdriller
in reply to: Stemdriller

The attached is where it is getting it's value, but if i do not put in a value it will not map from Vault.

 

Message 12 of 22
steve216586
in reply to: Stemdriller

This sounds like a circular reference. You need the attribute to get its value from Vault via Field equation "DESCRIPTION". But if Vault doesn't provide a "DESCRIPTION" value for the Field then you see four dashes.

 

Or there is some important information missing:

You describe you don't want the four dashes shown on plot. But you can't or aren't editing through the normal "Enhanced Attribute Editor" dialog window because the values come from Vault. Or can you? Are you possibly trying to edit the text in your title block through "Block Attribute Manager" instead?

 

I think we all need more description about what process you are going about creating/editing your attributes at the time when you defined the attributes and for the end result when you plot.

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 13 of 22
sthompson1021
in reply to: Stemdriller

I think you are stuck with the dashes as long as you need to use fields to input data. According to help, A field for which no value is available displays hyphens (----). I don't use fields so maybe someone else knows how to change that default. 

Message 14 of 22
jggerth
in reply to: sthompson1021

 tty setting "%%" as the default value of the attribute.

 

Let me clarify -- as I'm not sure how that would work with Vault.

 

My border gets its textual infomation from a SheetSet.  The inserted titleblock uses fileds that are mapped to either custom properties, or standard properties in the sheetSet.  When any of those fields is supposed to be blank, the corresponding SheetSet property consists of two percent signs, %%.

 

So an attribute that is a field that's mapped to a property with the value %% displays as nothing, rather than 4 hyphens.

 

snip from SSM custom properties is shown below.

 

 

 ssm.PNG

Message 15 of 22
heinsite
in reply to: Stemdriller

This could be pretty simple... if you can make the default value a single spacebar.  I do this with fields all the time when I don't have something to enter and want to show a blank value.  You'll still see a grey bar in the model but when you print there won't be anything there.

 

I should have looked at your screenshot before writing... but it does seem like you can set the initial values as a spacebar character and get rid of the dashes.

 

Dave.

------------------------------------------------------
Dave Hein, P.E.
Message 16 of 22
Stemdriller
in reply to: heinsite

Hi Dave
That was one of the first things I tried, but if i place a spacebar character then yes the dashes do go, but the field then stays completely blank even if it has data in the corresponding property. I am going to try and see if it will allow one dash as it's default.
Message 17 of 22
Stemdriller
in reply to: jggerth

Hi thanks for responding, I will try your suggestion.
Message 18 of 22
Stemdriller
in reply to: sthompson1021

I am going to try and see if it will accept one dash as it's default.

Thanks for trying to help
GW
Message 19 of 22
Stemdriller
in reply to: Stemdriller

Hi all

 

Thanks for all your input over this topic.

 

I managed to sort it by using vb.net in the end. The dashes represent NULL, so initially the dashes are present but managed to code it so 'OnActivate' if property is NULL then changed to " " which got rid of the dashes, if there was data then it simply entered the data.

 

Job Done

 

Thanks again

 

GW

Message 20 of 22
tbennett
in reply to: Stemdriller

I read through this quickly but hopefully I understood.

 

See my attachment.  Do you have the "Display background of fields" checked?  I use spaces to get rid of the dashes and make sure this is checked.

Please mark "Accept as Solution" if your question is answered. Kudos gladly accepted.

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

Post to forums  

Autodesk Design & Make Report

”Boost