Jump to content

Recommended Posts

Posted

Hi All.

 

Is there a way to display the property label from a dynamic block parameter as text within the block iteslf?

 

Basically I'm creating a dynamic block that can be flipped and it needs to display text to identify it as flipped or not flipped.

 

I know the flip parameter and it's current state can be seen if you open the block's properties, but is there a way to show this information in the block itself?

Posted

without looking too deeply I would have thought this would be available as a field

Posted

It looks like I was wrong. The flip parameter state is available in the block editor but I can't make it persistant so you only get #### when the block is inserted.

 

There are a few others good at dynamic blocks so they may give better guidance.

Posted

Thanks dbroada. I did have a dabble with standard attributes but couldn't get it to work either. However I don't create attributes/fields very often so I wasn't sure if it was my lack of knowledge that was the problem.

Posted

I am sure there is a way to include a field in an attribute or MTEXT object so that it will stick. I know somebody (steven-g?) has demonstrated it to me before but I can't remember how. Maybe he will come along and help us out here.

Posted

Did someone call :). Take a look at the attachment it has a few things in there, hopefully one of them will be usable.

Flip.dwg

Posted

shame you got it in after I had left work, I'll have to try to remember to look on Tuesday.

Posted

Thanks Steven-g.

 

I shall dissect it when I get chance (probably Monday now). I must admit I've never used Look-Up before, what does it allow you to do?

Posted

Hey all.

 

I've had a quick play with Lookups, but I'm not sure if it's what I'm after (or more likely I'm not doing them correctly).

 

Attached is a simplified version of what I am trying to create. I currently use a wipeout to 'change' the text, but while it is OK within a base drawing it can cause some problems when xrefed.

 

I know I could potentially use VisStates, but they are already used to control which lines are visible within the block (although I haven't added it to this simplified version).

 

Any more thoughts on acheiving the same effect without using the wipeout?

Flip-01.dwg

Posted

The lookup and then an attribute should work fine, You do need to do a regen after a flip in order for the text to update.

Flip-02.dwg

  • 3 weeks later...
Posted

It's taken a bit longer to get back to this than I expected!

 

Thanks steven-g that is exactly what I'm looking for. I've had a play, but I'm struggling to get the attribute to correctly pick-up and display the look-up values. Any chance you could provide an idiots guide?

  • 2 months later...
Posted

One of our block libraries needs a complete over-haul (only so many times you can tweak existing resources before they start to fall apart), and I'd like to try and use look-ups as Steven-g suggested.

 

Unfortunately I'm still having trouble getting the look-up to work properly. It either displays nothing at all, or a string of hash marks. I don't suppose any of you kind souls could give me an idiot level guide on how to incorporating look-ups into a block/reference the flip properties?

Posted

Sorry my bad, this was on my todo list I just forgot todo.

Start with your block and add in the flip parameter and flip action for your block, add a lookup parameter and then a lookup action, if you double click on the lookup action it opens a dialogue box

1AddProperties.JPG

this is where you can select to add the flip action to the lookup table

2AddParameter.JPG

the input properties for a flip action only lets you choose 'Not flipped' or 'flipped'

different actions allow other values, the text at the right under lookup properties can be anything you want just make sure that no 2 lines contain the same values or you will get a warning, if all is well you should have the "Allow reverse lookup" text otherwise it will show "Read only"

3AddProperties2.JPG

click ok and exit back into the block editor, next add an attribute to the block with the 'attdef' command, give the attribute a unique TAG and then click on the field button to the right of the default box

4AttdefField.JPG

this opens another dialogue where you can select a value to use in the attribute select 'blockplaceholder' and 'lookup1' as shown and click ok

5AttdefField2.JPG

make sure the attribute mode 'preset' and 'lock position' are checked then click ok and finally exit the block editor saving your changes.

6AttdefField3.JPG

Back in the drawing you will need to run the 'attsync' command to update the block or just insert a new block, and that should now all be working, don't forget the 'regen' when you flip the blocks.

Posted

No need to apologies steven-g, I appreciate you are busy and I'm grateful for you taking the time to help me out.

 

Unfortunately some more pressing work has landing on my desk, so the block update will have to be put on the back-burner for a couple of weeks, but thanks for the step-by-step guide.

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