Need Advice-Copy Dblock properties from one Dblock, to another matching Dblock.

Need Advice-Copy Dblock properties from one Dblock, to another matching Dblock.

Anonymous
Not applicable
475 Views
10 Replies
Message 1 of 11

Need Advice-Copy Dblock properties from one Dblock, to another matching Dblock.

Anonymous
Not applicable
Any ideas on the best approach to copy Dblock properties from one Dblock, to
another matching Dblock?
0 Likes
476 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
Something like:

sdbprop = srcobj.GetDynamicBlockProperties
If tarobj.IsDynamicBlock Then
tdbprop = tarobj.GetDynamicBlockProperties
For i = LBound(sdbprop) To UBound(sdbprop)
tdbprop(i).Value = sdbprop(i).Value
Next i
End If
0 Likes
Message 3 of 11

Anonymous
Not applicable
Hmmm, I will give it a shot. Thank you for replying.
Dan

"Allen Johnson" wrote in message
news:5199927@discussion.autodesk.com...
Something like:

sdbprop = srcobj.GetDynamicBlockProperties
If tarobj.IsDynamicBlock Then
tdbprop = tarobj.GetDynamicBlockProperties
For i = LBound(sdbprop) To UBound(sdbprop)
tdbprop(i).Value = sdbprop(i).Value
Next i
End If
0 Likes
Message 4 of 11

Anonymous
Not applicable
Thanks, that got me started.
Dan
"Allen Johnson" wrote in message
news:5199927@discussion.autodesk.com...
Something like:

sdbprop = srcobj.GetDynamicBlockProperties
If tarobj.IsDynamicBlock Then
tdbprop = tarobj.GetDynamicBlockProperties
For i = LBound(sdbprop) To UBound(sdbprop)
tdbprop(i).Value = sdbprop(i).Value
Next i
End If
0 Likes
Message 5 of 11

Anonymous
Not applicable
Can you help me to get access to the Dblock name rather dan Anonymous Name with VBA code.
I do not know where does it stores.
0 Likes
Message 6 of 11

Anonymous
Not applicable
Look at the .EffectiveName property.
0 Likes
Message 7 of 11

Anonymous
Not applicable
Is there an echo in here? ;^)

--
R. Robert Bell


"Allen Johnson" wrote in message
news:5206092@discussion.autodesk.com...
Look at the .EffectiveName property.
0 Likes
Message 8 of 11

Anonymous
Not applicable
Huh?
huh?
0 Likes
Message 9 of 11

Anonymous
Not applicable
what is Dblock,and where can i get some hint about it,

maybe it is meaningful to me ,

thanks



"Dan" wrote in message
news:5199838@discussion.autodesk.com...
Any ideas on the best approach to copy Dblock properties from one Dblock, to
another matching Dblock?
0 Likes
Message 10 of 11

Anonymous
Not applicable
Dynamic Blocks, introduced in AutoCAD 2006.

--
R. Robert Bell


"youngman" wrote in message
news:5206886@discussion.autodesk.com...
what is Dblock,and where can i get some hint about it,

maybe it is meaningful to me ,

thanks
0 Likes
Message 11 of 11

Anonymous
Not applicable
i am using 2000i,
that why i cannot understand it,

thanks Robert Bell



"R. Robert Bell" wrote in message
news:5206900@discussion.autodesk.com...
Dynamic Blocks, introduced in AutoCAD 2006.

--
R. Robert Bell


"youngman" wrote in message
news:5206886@discussion.autodesk.com...
what is Dblock,and where can i get some hint about it,

maybe it is meaningful to me ,

thanks
0 Likes