Jump to content
  • 0

Overridden Dimensions Data Visualization or script to show.


The Hamma

Question

I would like to be able to show dimensions where the dimension label has been overwritten.  This would be dimension that have "Show Dim Value" turned off.  Data visualization does not have a call for dimensions.  I have looked at the script output for a dimension and I don't see how I could query this information either.  If some one knows how please inform me.  If not I would like to add dimensions to the Data Visualization Wishlist. 

Link to comment

9 answers to this question

Recommended Posts

  • 0

We can make this work a couple of ways:

 

1.  I can attach a record to Dims with Show Dim Value unchecked. Then you can use Visualization to set them as you need.

2. I can Change the Class or Attributes of these Dimensions

3. I can Deselect everything and then select only the Dims with Show Dim Values unchecked.

 

What will work better for your workflow?

Link to comment
  • 0
19 hours ago, Pat Stanford said:

We can make this work a couple of ways:

 

1.  I can attach a record to Dims with Show Dim Value unchecked. Then you can use Visualization to set them as you need.

I think this would work best for my needs then I could either select items with the record or display them with Data Visualization.  Which script command gives you the status of the Show Dim Value Checkbox?

 

Link to comment
  • 0

GetObjectVariableBoolean(Handle, 6); is the key you need to unlock this problem.  Not available except through a script.

 

Script and Visualization both in the attached file.

 

Procedure MarkOverriddenDims;

{May 27, 2022}
{©2022 Patrick Stanford pat@coviana.com}
{Licensed under the GNU Lesser General Public License}

{No Warranty Expressed of Implied. Use at your own risk.}


{Object Variable 6 indicates if a Dimension has the Show Dim Value}
{Check box checked. If true it means that the dim value is showing}
{False means it is not showing.}
{This script runs looks at every Dim in the document and deletes a Record}
{from those that have Show Dim Value checked and adds the Record}
{to those that have it unchecked.}

{If you don't ResetObject on each Dim, a Data Visualization}
{will not see the correct Record attached/detached value.}


	Procedure Execute(Hd1:Handle);
		BEGIN
			If GetObjectVariableBoolean(Hd1,6) Then 
				DelRecord(Hd1,'OverriddenDim')
			Else
				Record(Hd1,'OverriddenDim');
			ResetObject(Hd1);	
		End;
		
BEGIN
	ForEachObject(Execute, (INSYMBOL & INOBJECT & INVIEWPORT & (T=DIMENSION)));
End;

Run(MarkOverriddenDims);

 

Mark OverriddenDims.vwx

  • Like 1
Link to comment
  • 0

Awesome thanks.  I added a few lines to the script to create the record in the file if it does not exist. 

 

Procedure MarkOverriddenDims;

{May 27, 2022}
{©2022 Patrick Stanford pat@coviana.com}
{Licensed under the GNU Lesser General Public License}

{No Warranty Expressed of Implied. Use at your own risk.}


{Object Variable 6 indicates if a Dimension has the Show Dim Value}
{Check box checked. If true it means that the dim value is showing}
{False means it is not showing.}
{This script runs looks at every Dim in the document and deletes a Record}
{from those that have Show Dim Value checked and adds the Record}
{to those that have it unchecked.}

{If you don't ResetObject on each Dim, a Data Visualization}
{will not see the correct Record attached/detached value.}


	Procedure Execute(Hd1:Handle);
		BEGIN
			If GetObjectVariableBoolean(Hd1,6) Then 
				DelRecord(Hd1,'OverriddenDim')
			Else
				Record(Hd1,'OverriddenDim');
			ResetObject(Hd1);	
		End;
		
BEGIN
	if GetObject('OverriddenDim') = NIL THEN;
		BEGIN
			NewField('OverriddenDim', 'Overridden', 'TRUE', 4, 0);
		END;
	ForEachObject(Execute, (INSYMBOL & INOBJECT & INVIEWPORT & (T=DIMENSION)));
End;

Run(MarkOverriddenDims);

 

  • Like 1
Link to comment

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
Answer this question...

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