Copy Sketch Symbol in a view

Copy Sketch Symbol in a view

Anonymous
Not applicable
258 Views
1 Reply
Message 1 of 2

Copy Sketch Symbol in a view

Anonymous
Not applicable

I have a code that will place a sketch symbol on a view. The problem I have is some times that symbol is used in that same view multiple times Is there a line of code I can put in my code so the symbol  places in the view  a specified number of time based on the a message box enters? 

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

A.Acheson
Mentor
Mentor

That should be possible, can you post the code your using? You really just need to use a for loop where the add line is . Rough logic below.

 

Dim oCount As Integer
oCount = InputBox("Enter Number Here", "Symbol Qty", "1")

Dim i As Integer

For i = 1 To oCount
	
	'add symbol and position move.

	MessageBox.Show(i, "Title")

Next

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes