How to get the projection matrix in EasyAR - vuforia

Vuforia provides an easy way to get the projection matrix using the following code
VuforiaUnity.GetProjectionGL. Going through the EasyAR documentation, I could not find any similar method. Please suggest if any such method exists.

CameraDevice has a method called projectionGL:
https://www.easyar.com/doc/EasyAR%20SDK/API%20Reference/2.0/CameraDevice.html#projectiongl
Example usage can be found in their demo projects (see HelloAR.java).

Related

Extending PXMappedCacheExtension

Does anyone have an example of how to add a field to a Mapped cache extension? I am trying to extend the SalesPrice functionality in 2019R1. It looks a lot like a DAC... but something tells me I cant simply just make an extension for it..
Thanks
Please see below the diagram showing how it works.
In short, you create a generic graph and a class inherited from PXMapppedCacheExtension which will have all the fields that you need for your reusable logic.
Then you declare the mapping to the class and the implementation of the generic graph.
Please find the complete description by the following link.

hierarchical bar graph using flot js

I've been searching for hours if the hierarchical bar graph is supported in flot but I can't find a good documentation or answer. I find some examples using multiple xaxis(xaxes) but this seems different from what I want. See image below:
Now, my question is that is this the correct approach or do I need find a new plugin to use?
Thanks!

Accessing Area.Name Throws Error

I'm just trying to find a way to access the name property of an Area element inside Revit Python Shell, tried looking on Jeremy Tammik's amazingly informative blog, tried AUGI, Revit API docs, been looking for 2 days now...
Tried accessing via a bunch of ways, FilteredElementsCollector(doc).OfCategory(BuiltInCategory.OST_Areas), tried by Area class, tried through AreaTag, every single time I get an error under every circumstance and it's driving me nuts, it seems like such a simple issue that I can't seem to grasp!
EDIT: Also tried by element id, through tags, through area schemes, nada, no go...
Can anyone please tell me how to access this property via RPS?
I would say two things:
areaObject.LookupParameter("Name")
areaObject.GetParameters("Name")
...are valid methods. Please notice how I used GetParameters() NOT GetParameter(). There are some drawbacks to using either one of the two. The lookup method will return FIRST parameter that matches the name which in many cases might be a different parameter for different elements. It's not very reliable.
GetParameters() method will return them all if there are multiple so then you have to deal with a List<Parameter> rather than a single object that you can extract your value from.
I would personally recommend to use areaObject.get_Parameter(BuiltInParameter.ROOM_NAME) method to extract a Name value from Area object. The BuiltInParameter always points at the same parameter, and will reliably return just that one parameter. Here's a little more details about these methods:
http://www.revitapidocs.com/2018/4400b9f8-3787-0947-5113-2522ff5e5de2.htm
To answer my own question, I actually never thought of looking through the code of other Revit Python scripts... in this case of PyRevit, which is in my opinion far more eloquently written than RPS, raelly looking forward for their console work to be done!
Basically, I had mistakenly used GetParameter('parameter') instead of LookupParameter('parameter').
As I said, it was something stupidly simple that I just didn't understand.
If anyone has sufficient knowledge to coherently clarify this, please do answer!
Many thanks!
Maybe your issue is the same as this one ? :
https://groups.google.com/forum/#!searchin/RevitPythonShell/name|sort:relevance/revitpythonshell/uaxB1FLXG80/sdJNrTfoPuUJ
Your_Area.Name # throws error
Element.Name.GetValue(Your_Area) # works great

Can I display multiselect list items as onordered list using Razor?

I was wondering if this is possible with razor syntax (I have found that there are other ways that utilize jquery). Please point me in the right direction if you know one. I am working on a MVC 5 project.
Thanks.
Yes, this is possible by creating custom html helper methods. Refer this little example which would be helpful.
Video version of tutorial

MKOverlayView usage Sample Code

I would like to make an app to track running routes (real-time) on a map.
I think I have to use CoreLocation(GPS) and MKOverlayView (to draw routes on map).
But I couldn't find appropriate sample code on the internet.
Is there any good sample code?
I used this tutorial for drawing the path in my app. The author explained very clearly. Hope this help.
This is new link

Resources