Maybe I'm not explaining myself correctly. I'm programmatically opening the
idw, collecting all the view scales, feeding them to a listbox and showing
the form containing the listbox. The form also has an button on it which
the user clicks after selecting a scale from the list. In psuedo code it
looks like this:
'Form w/listbox
Private Sub CommandButton1_Click()
SavedScale = lstScales.Text
Unload Me
End Sub
'...Snip from end of scale routine...
' Add all the Scales to a String
For i = UBound(SortedScales) To 1 Step -1
frmScales.lstScales.AddItem ConvScale(SortedScales(i))
Next i
frmScales.lstScales.AddItem ConvScale(SortedScales(i))
frmScales.Show
' I need to pause right here waiting for the form to return.
Debug.Print SavedScale
'Add a custom property "Scale" with all the view scales
Dim oPropSet As PropertySet
Set oPropSet =
ThisApplication.ActiveDocument.PropertySets("{F29F85E0-4FF9-1068-AB91-08002B
27B3D9}")
oPropSet.Item("Comments").Value = oPropSet.Item("Comments").Value &
"Sheet" & SheetNumber & "*" & SavedScale & ","
Set oPropSet = Nothing
End Sub
Do I need to set a flag from the form button and go into a loop waiting for
it to change?
Thanks,
"Kent Keller" wrote in message
news:8CE58B48F0EF57EC82C66E272FC485DD@in.WebX.maYIadrTaRb...
> It will! Modeless simply means you are able to select and do things in
Inventor and
> still have the dialog showing.
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
>
> "Tim Strandberg" wrote in message
> news:6BFE48FC0C937295EC3765963B57569F@in.WebX.maYIadrTaRb...
> > I am collecting the various view scales and want the user to choose one.
> > The overall scale for the drawing is displayed in the title block. I
want
> > the user to be able to view my form with a listbox showing all scales
and
> > zoom in on the titleblock at the same time. I thought if I showed the
scale
> > modeless this would accomplish what I want.???
>
>