AddMInsertBlock parameters are integer instead of double

AddMInsertBlock parameters are integer instead of double

NickBrege
Enthusiast Enthusiast
323 Views
1 Reply
Message 1 of 2

AddMInsertBlock parameters are integer instead of double

NickBrege
Enthusiast
Enthusiast

I am trying to use the AddMInsertBlock function to add an array of blocks to a drawing.  I got it working, however the row & column spacing is not using the values I specify in the parameters.   So if I specify a spacing of 3.5, for example, the block spacing gets rounded to 4.0.  Visual Studio IntelliSense shows that those parameters take integers, but online documentation shows it as doubles.  See attached image.

Is this an error in the API?  Anyone else have this problem or know a fix?  Thanks...

 

Capture.JPG

 

 

0 Likes
324 Views
1 Reply
Reply (1)
Message 2 of 2

Ed__Jobe
Mentor
Mentor

It seems that the .NET version of the COM wrapper has changed the parameters from the VBA version, which are doubles. Regardless, using a MINSERT is pretty old technology. Why don't you use an AssocArray like the ARRAY command does? You can search this forum for samples. And here's another.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes