VB.NET - Avoiding Blockdef.name duplication error question...(BTRS)

VB.NET - Avoiding Blockdef.name duplication error question...(BTRS)

patmang
Enthusiast Enthusiast
375 Views
1 Reply
Message 1 of 2

VB.NET - Avoiding Blockdef.name duplication error question...(BTRS)

patmang
Enthusiast
Enthusiast
I know how to get the user input for the new name, but how do I look through the BTRS and say if the input name is a duplicate?
I can handle the rest, I would like to use an If/Then statement...

patmang.
0 Likes
376 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

if (BlockTable.Has("MyBlock"))

    ''The block def with name
"MyBlock"already exists

else

    'The block def does not
exist


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
know how to get the user input for the new name, but how do I look through the
BTRS and say if the input name is a duplicate? I can handle the rest, I would
like to use an If/Then statement... patmang.
0 Likes