What is the way to get curves from AcDbRegion? - autocad

In the ObjectARX application I'm using AcDbRegion::createFromCurves to create a region and works OK.
Now I need to get subentities when I have the AcDbRegion. I mean something similar to AcDbHatch::getLoopAt
Can anybody point the way to get solution?

you should use AcDbEntity::explode
http://help.autodesk.com/view/OARX/2018/ENU/?guid=OREF-AcDbEntity__explode_AcDbVoidPtrArray__const

Related

2D distributions in the HistFactory?

How can I specify in the construction of the HistFactory the signal and background to be 2-dimensional distributions?
I have understood than in RooStats you need to change the TH1 to a TH2.
At the moment to write my model in the json file can I use a ndarray to do something similar?.
Which is the correct way to do this?
I hope someone can help me and thank you in advance.
Currently the best way is to unroll the distributions e.g.
{'data': 2darray.ravel().tolist()}
Since mathematically it doesn't make any difference.
If you want to convert from XML+ROOT this is not yet supported (but could be). If so, please open an issue on GitHub.
Thanks for using pyhf!

pyhf: POI application using formula

I am trying to write a likelihood model in which the POI affects two samples, but while one I have the regular POI*yield, the other I have f(POI)*yield where f is an arbitrary function.
Is there a simple way to implement that in pyhf?
Thanks in advance.
pyhf currently does not support it, but it's something that is on our mind. Can you open an issue on our github with this as a feature request and we can work out how to do it.

How to make a power point presentation like this

maybe this is not the correct forum where to post this question, but i've serched for two weeks in the web, without results.
I need to make a kind of power point presentation, something like this - do know which program can i use?
Thank you
I think, that tool used for this prezentation can be find on
http://prezi.com/
This is called infographics and you can use website like visual.ly/
Then, you have to do your own effects

is there an easy way to inspect/edit values stored in nsIPrefBranch?

I'm looking for a way to quickly edit and view my extension credential list (I use nsIPrefBranch to store it).
Is there any easy way to do that? I tried to look where that's stored but couldnt find it.
Many thanks!!
Got it,
It's inside %appdata%\Mozilla\Firefox\Profiles{ID}\prefs.js

Xcode, is it possible to type in co-ordinates and then get location?

I was wondering if this type of task is possible and if so how can it could be done or is there a tutorial on this? I believe a task like this involve collocation ,but I am not for sure.
Reverse Geocoding made simple
thats a great tutorial for reverse Geocoding. Adapt what they show you to switch input of a place to input of the coordinate and you will have what you want.

Resources