« ImportExport Update | Main | VendorId, DevTV, and My First Plugin »

July 13, 2011

Comments

I have a question I hope you can help me with, not sure where else to post.

This is the old way I returned a list for elements in the active view.

Dim parameterId As ElementId = GetSharedParameterId(category, sharedParameterGuid, isInstanceParameter)
Dim pvp As ParameterValueProvider = New ParameterValueProvider(parameterId)
Dim evaluator As New FilterStringEquals
Dim rule As New FilterStringRule(pvp, evaluator, sharedParameterValue, False)
Dim filter As ElementParameterFilter = New ElementParameterFilter(rule)

' fetch a filtered list
Dim collector As New FilteredElementCollector(_uiApp.ActiveUIDocument.Document)
Dim list As List(Of Element) = collector.OfClass(type).OfCategory(category).WherePasses(filter).ToElements
Return (List)


However in 2012 this gives me all elements from all options. How can I filter down to the active option?

Thanks, and sorry if i posted in the wrong area

Hi Jeremy,
I'm picking point cloud points with the (PickPoint) method you described above and it works fine.
I recognized that navigation within the point cloud ( zoom, pan, orbit ) slows down if "Pick to Remote Objects" or "Pick to Point Clouds" is active and the command ( Selection.PickPoint() ) was started. Navigation while the command ( Selection.PickPoint() ) is running becomes even impossible if both snaps are active.
So I tried to use
public XYZ PickPoint( ObjectSnapTypes snapSettings, string statusPrompt )
instead with ObjectsSnapTypes.None to disable snaps for this prompt.
If I'm doing so the cursor doesn't snap to objects at all but navigation is still slow. If I disable the "Pick to Remote Objects" option within Snaps-Dialog before everythink is fine and navigation is fast. So it seems to me that ObjectsSnapTypes.None overrides "Snap to Point cloud" but not the "Snap to Remote Object".
UIApplication.PostCommand() isn't a options, cause it is possible to launch the Snaps-Dialog with PostableCommand.Snaps but it's not possible to Post "ID_SNAP_OVERRIDE_NO_SNAP" cause it isn't an Postable command.
Do you see any other possiblily to disable the snaps completely?
Thanks and Greetings
Harald

Dear Harald,

I am discussing the issue with the development team. Please hold on.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource