Showing posts with label value. Show all posts
Showing posts with label value. Show all posts

Thursday, December 21, 2017

How to Instantly Preserve Attribute Value when Exploding

How to Instantly Preserve Attribute Value when Exploding


Block Attribute is a useful tool in creating and modifying your CAD drawings. We can use Block Attribute to save text style and size as annotation block. Likewise, we will be able to set up a title block with attributes.

But the problem is, sometimes you may want to turn an attribute block into individual pieces. Generally we will use EXPLODE. But after exploding, you will find that the attributes lose their values, and which shows the attribute tag instead. How to keep the data in attributes after exploding?


To preserve the values, we suggest the use of BURST instead of EXPLODE.

EXAMPLE is practiced in ZWCAD+:

Explode attributes and use BURST to convert attribute values to text objects.

1.    Select a block containing two attributes:




2.    Block exploded and attribute values converted to text:




You may be interested:

How to define and use block attribute

How to create title block with block attribute in ZWCAD

How to explode an object in AutoCAD





visit link download
Read more »

Monday, December 18, 2017

iLogic Dynamic MultiValue Parameter Lists Filtered By Current Selected Value

iLogic Dynamic MultiValue Parameter Lists Filtered By Current Selected Value


Issue:
You want to "filter" a list (List B) based on the selection from another list (List A), but the lists are long and writing the If/Then or Select Case statements are repetitive, and difficult to maintain. Is there a better way?

Solution:
You can use ArrayLists and For Each Statements to do this, as shown in this example.

Here an illogic form is used, and when a value is selected from List A, then List B and C are reset to include only values less than or equal to the current selected List A value.



Example file:
Dynamic MultiValue Lists iLogic 2015.ipt ?68 KB    

SyntaxEditor Code Snippet
Example code:

reset List B list to default
MultiValue.SetList("List_B", 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)

reset List C list to default
MultiValue.SetList("List_C", 2,4,6,8,10,12,14,16)

Dim B_List As New ArrayList
B_List = MultiValue.List("List_B")

Dim C_List As New ArrayList
C_List = MultiValue.List("List_C")

Dim Temp_List As New ArrayList

Temp_List.Clear
For Each oItem in B_List
If List_A >= oItem Then
Temp_List.Add(oItem)
End If
Next

MultiValue.List("List_B") = Temp_List

Temp_List.Clear
For Each oItem in C_List
If List_A >= oItem Then
Temp_List.Add(oItem)
End If
Next

MultiValue.List("List_C") = Temp_List


visit link download
Read more »