Jump to content

Recommended Posts

Posted

Hello!

 

How could I make a block (dynamic) that would show the blocks base point coordinates as a text, but separately (X from Y axis)?

The idea is that the block would always show it's current base point coordinates - wherever it is moved inside a drawing.

Is it possible to do so with a dynamic block, or it has to be programmed somehow?

 

Thanks in advance!

Posted
block with reactor should work for this

 

Can you explain this in a little bit more depth please..

Posted

I can't test it here but I would have thought any block with text set as a field could achieve this - although you will need to regen each time you move it. :)

Posted
I can't test it here but I would have thought any block with text set as a field could achieve this - although you will need to regen each time you move it. :)

The thing i need is to make a "crosshair" with coordinates of it's center (point), and then I would array it in an row and column offset of 100, 200, 500, ect. I actually need it to show me the right coordinates just once (after the array of course), so regen is not a problem.

 

Could you please explain how to make such block with text (for coordinates) - I don't have any experience with dynamic blocks.

Posted

I am at home so this is only from memory.

 

In your text editor dialogue box right click and INSERT FIELD. You will have to look throughout but I THINK one of the objects available is X_Insertion point & Y Insertion point.

 

This may appear as #### for now, I'm not sure. Now build your block and see what happens.

 

If you don't get anywhere I will try to have a look at lunchtime tomorrow.

 

As I implied above, I have never done this so I don't have first hand knowledge. Some of the field options look promising but fail to deliver. I'm hoping this isn't one of them.

Posted

this should works but like dbroada said only after regen.

 

And regarding reactors, i will look for this. Someone in my company has provided such a thing :)

dynblk.dwg

Posted
this should works but like dbroada said only after regen.

 

And regarding reactors, i will look for this. Someone in my company has provided such a thing :)

I'm glad you have something that works. I have spent a few minutes this morning on it and can't get anywhere.
Posted
this should works but like dbroada said only after regen.

 

And regarding reactors, i will look for this. Someone in my company has provided such a thing :)

It really works! Thanks!

 

But, could you explain step by step how you did it?

I made two mtext fields (separate for X and Y axis) but I have a problem making a block from the block cross and the two texts.

Is there any way of making that gray background in mtext disappear?

In dwg I uploaded here is a block named cross with a base point (center of circle) which coordinates are needed and the two multi line texts are referring to that circle's center coordinates.

Everything works if I don't make a block out of these three.

In dwg, just by the cross there are a couple of single line texts that represent the desired looks of coordinates. Is it possible to make them look like that and still be "workable"?

I chose the fractional looks of coordinates in INSERT FIELD box, because the coordinates do not need to be decimal. The distance between these blocks with coordinates shown is soposed to be 100, 200 or 500 units starting from a round value, so no decimal symbol is needed.

cblock.dwg

Posted

Please try to go follow

 

1). Create a block

1.1 Go to blockeditor and add two blcok attributes; one for X and one for Y, add tag , and prompt, tick "preset" untick option others in mode window of attribute.

1.2 Go to the value of attribute press ctrl+f (add field) go to Object tab, mark

obejct chose block, You will recive the list with avalible variables to choose.

1.3 Choose position (center), or base point if You added it before, and close.

Save block

 

2) Insert the block into drawing

3) double click on block, go to edit attributes go to value erase ####### , press ctrl+f mark object, and other thing or information wich You want to have and save.

 

that is all Should work! ;)

Is there any way of making that gray background in mtext disappear?

Yes

command: FieldDispaly 0

 

I chose the fractional looks of coordinates in INSERT FIELD box, because the coordinates do not need to be decimal. The distance between these blocks with coordinates shown is soposed to be 100, 200 or 500 units starting from a round value, so no decimal symbol is needed.

 

You are able to edit it while setting the field value.

 

In dwg, just by the cross there are a couple of single line texts that represent the desired looks of coordinates. Is it possible to make them look like that and still be "workable"?

 

Rather not ;/

 

This is only one field You cannot divide it.

cblock.dwg

  • 1 year later...
Posted
Please try to go follow

 

1). Create a block

1.1 Go to blockeditor and add two blcok attributes; one for X and one for Y, add tag , and prompt, tick "preset" untick option others in mode window of attribute.

1.2 Go to the value of attribute press ctrl+f (add field) go to Object tab, mark

obejct chose block, You will recive the list with avalible variables to choose.

1.3 Choose position (center), or base point if You added it before, and close.

Save block

 

2) Insert the block into drawing

3) double click on block, go to edit attributes go to value erase ####### , press ctrl+f mark object, and other thing or information wich You want to have and save.

 

that is all Should work! ;)

Is there any way of making that gray background in mtext disappear?

Yes

command: FieldDispaly 0

 

I chose the fractional looks of coordinates in INSERT FIELD box, because the coordinates do not need to be decimal. The distance between these blocks with coordinates shown is soposed to be 100, 200 or 500 units starting from a round value, so no decimal symbol is needed.

 

You are able to edit it while setting the field value.

 

In dwg, just by the cross there are a couple of single line texts that represent the desired looks of coordinates. Is it possible to make them look like that and still be "workable"?

 

Rather not ;/

 

This is only one field You cannot divide it.

 

Hi dear qbi,

After many thaks for your helpful and so useful post about dynamic blocs, I have some questions about that. The first is about the sign of numbers + or -. Indeed when I insert my block in + position I want it to show the sign befor the position coordinates number but it show just when the position is negative and there is no sign with + coordinates and also when I insert my block at 0 position I want it to show the + and - befor the 0.000 as like as when we use %%p0000 in our block attributes. Is there any way to show these signs too or not.

The other question is that how can we force our block to remove the "." decimal sign from this value? for example I want it to show the 1000 instead of 1.000 indeed I want to use the millimeter instead of meter units.

Best regards,

Truly yours

Javid:)

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