Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
Please is there a way to load dynamic block parameters from an external file (ex. csv, mdb or others) and to automatically regenerate that block according to the new parameters?? is there a ready-for-use LISP script? or any API to download?
DBlock properties are available via ActiveX. There are several examples
posted in the Customization group.
--
R. Robert Bell
wrote in message news:5183363@discussion.autodesk.com...
Please is there a way to load dynamic block parameters from an external file
(ex. csv, mdb or others) and to automatically regenerate that block
according to the new parameters?? is there a ready-for-use LISP script? or
any API to download?
ok thanks a million... i've already had a brief look at it but i didn't find anything suitable .. please can anyone help me found a specific case regarding dynamic block parameter writing via DB? thanks a million
Private Sub ScanBlks()
Dim dybprop As Variant, i As Integer
Dim bobj As AcadEntity
For Each bobj In ThisDrawing.ModelSpace
If bobj.ObjectName = "AcDbBlockReference" Then
If bobj.IsDynamicBlock Then
If bobj.EffectiveName = "cirtagleader" Then
dybprop = bobj.GetDynamicBlockProperties
For i = LBound(dybprop) To UBound(dybprop)
If dybprop(i).PropertyName = "Visibility" Then
dybprop(i).Value = "Leader Off"
End If
Next i
End If
End If
End If
Next
End Sub
The above example changes the "Visibility" visibility state of a block "cirtagleader" to "Leader Off" for each insert in the
drawing.
I'd like to know if there is a way to use wildcard in your code? I tried to replace the " If bobj.EffectiveName = "cirtagleader" Then " with " If bobj.EffectiveName = "SYM-M*" Then " so that all my blocks starting with SYM-M in my drawings are modified.
It doesn't seem to work Randy. Instead, someone on the VBA forums posted this code that works great:
Replace:
'If bobj.EffectiveName = "cirtagleader" Then