SVF | Static Value-Flow Analysis Framework for Source Code | Code Analyzer library
kandi X-RAY | SVF Summary
kandi X-RAY | SVF Summary
Static Value-Flow Analysis Framework for Source Code
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SVF
SVF Key Features
SVF Examples and Code Snippets
Community Discussions
Trending Discussions on SVF
QUESTION
I created a viewer which includes multiple svf. Now I want to set camera to see every parts after viewer start. And also I want to set camera when I click home view button to make view that we can see every parts.
after clicking home view button
How can I set home view?
...ANSWER
Answered 2021-Mar-22 at 03:40You can achieve this by either of the following:
QUESTION
I am trying to write a Perl script to parse a file and segregate its contents based on a match criteria. A sample file (for e.g. test.txt) would look like something:
...ANSWER
Answered 2021-Mar-03 at 19:32While the logic of your code is correct and you surely will find some remaining typos on your own, I would like to suggest a modification to your while loop:
Each line of your input file will have to be printed once (except perhaps for the beginning of the input file). Instead of setting a $mode
flag and testing that, I'd rather switch the output filehandle , which leads to clearer code:
QUESTION
I have added the forge viewer to a web application in which different users may have access to different drawings/models.
Our current implementation of this functionality makes our own backend function as a proxy between our frontend and the Autodesk Forge API. Here, the backend adds the Authorization header after authenticating to the Autodesk API.
While this is fine for uploading and translating models to an Autodesk bucket, retrievel of these translated models by the Viewer through our own backend as a proxy seems unnecessary. For example, Azure or AWS object storage allows for creating private buckets that can be accessed directly through a "signed" URL. This way the frontend client only has to obtain such a signed URL from the backend and can then retrieve the file from the Azure/AWS bucket directly.
Is it possible to do something similar (creating a private bucket that can be accessed directly from the client) with the Autodesk Forge API?
If not, would it possible to store the translated model SVF file in our own Azure/AWS bucket and point the viewer to that location instead? This way we use Autodesk Forge for translation of the model and we can control access through private buckets in Azure/AWS.
...ANSWER
Answered 2021-Feb-16 at 13:15To your first question (creating a bucket that could be accessed directly by a client), unfortunately that is not something we support.
Regarding the possibility to serve SVF files yourself, and point Forge Viewer to their custom locations, that is possible but not recommended. The only requirement of the Terms of Use is that the Forge Viewer assets (JavaScript, CSS, images, etc.) must be served from the Autodesk domain.
QUESTION
When I migrate my Forge Viewer from SVF to SVF2, some of the geometry is not loaded and I get "Invalid OGT header" and "Failed to parse OGT geometry" for each element.
I'm obtaining the models directly from BIM360.
I'm using Nodejs with express and doing a post request to communicate Forge access token with the client
ANSWER
Answered 2021-Feb-10 at 10:27We are using SVF2 since 2 months and are now experiencing this problem for one of our models which worked without a problem before. However, most models work fine. It seems SVF2 regressed.
However, we use the EMEA environment:
QUESTION
I would like to get modelview metadata with the new format that SVF2 uses. I need it to get assigned dbIDs to the list of elements name that I have, to preprocess data.
I've uploaded and translated .nwd file in SVF2 format, where dbIDs are assigned in "Breadth First Search" way. However, when I get modelview metadata, it returns exactly the same modelview metadata as SVF format, where dbIDs are assigned in "Depth First Search" way.
BTW, I use https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-GET/ to get the metadata.
In the image below, the left side shows what I get (SVF format) from the the model translated in SVF2 format, and the right side show what I expect, which is the format that SVF2 uses.
dbIDs assignment format for SVF2, what I get vs what I expect
Please let me know, how can I get the right modelview metadata for SVF2.
...ANSWER
Answered 2021-Jan-26 at 10:51The SVF2 format is still being rolled out (currently in public beta), and unfortunately the Model Derivative metadata endpoint currently only provides SVF1 metadata.
At the moment, the only way to get the corresponding metadata for an SVF2 model is through the Forge Viewer APIs. For example, when you load your SVF2 model into the viewer, select one of the elements, and display the Properties panel, you should see the correct metadata there.
QUESTION
I'm trying to upload a file to a user's Firebase storage bucket once it has been processed by an API i'm working with. I'm doing this from the server side.
The issue here is that I need to reference the UID from the backend in order to send it across to firebase.
I've got everything working with the API but when I try to initiate Firebase it throws-back an error about it not being initialised. I have already initialised Firebase in my start.js and referenced Firebase in the file that I'm writing the code in. I guess I could call it via 'admin.firebase' but not sure if that makes sense as I want the users to upload via their uid. Any help would be awesome
Here is the post request initialising the API from the backend. The point i'm trying to initialise the firebase upload is where i call 'console.log(JOB COMPLETE)':
...ANSWER
Answered 2021-Jan-25 at 09:25I was able to call firebase from the backend using the following code:
QUESTION
We have a BIM 360 app that listens when documents are given new versions and updates to the latest version. A webhook is added for (system: data, event: dm.version.added), which gets triggered, but what we are interested in is only the SVF file created by the model derivative, and this event is triggered before that has been created.
I've been poking at the webhook (system: derivative, event: extraction.finished), which seems like want I want, but that requires a workflow-id value that looks like it's created with the job. As far as I can tell there's no way to query for jobs or find the workflow IDs of running jobs; the progress report is returned in the manifest but nothing else. In this case the job is being created by BIM 360 itself, and I'm wondering if there's a system workflow ID I can subscribe to, or some other way to hear about finished jobs that I didn't create.
...ANSWER
Answered 2020-Dec-15 at 15:20Unfortunately, it is not possible at the moment. 😞 I logged this request in our system but cannot tell if/when this might get implemented. For your reference, the ID of the request is ALEX-39359
In the meantime, you would have to keep polling our system for an up-to-date manifest of the file in order to see how far the translation progressed or if it finished: https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-manifest-GET/
QUESTION
I have created a .Net assembly and imported it into SQL Server and use it in a scalar-valued function (SVF).
When I execute the SVF it works fine. The second time also. But every third time the SVF fails and the underlying error is
System.NullReferenceException: Object reference not set to an instance of an object
I have added try/catch statements and debug data to the CLR, but I still have no clue as to why this CLR fails.
Can you help me out?
This is the C# code:
...ANSWER
Answered 2020-Nov-19 at 16:14It might be this line (in catch (WebException ex)
):
QUESTION
As the official documentation states, you can upload a source file to OSS and translate it, once in your bucket, to a SVF with the Model Derivative API.
But is it possible to skip the translation step, directly uploading a SVF project (for example, one of these: https://forge-rcdb.autodesk.io/gallery) and loading into the web viewer?
I haven't been able neither to do it nor find any documentation yet.
...ANSWER
Answered 2020-Nov-13 at 12:23Yes, that is possible. Instead of loading the Model Derivative service "manifest" using the Autodesk.Viewing.Document.load method, and then loading a specific "viewable" from the manifest using the Viewer3D#loadDocumentNode method, you can just call the viewer's loadModel method and provide an actual URL to your SVF file.
Note however that the Forge Viewer assets (JavaScript, CSS files, icons, etc.) should still be coming from the Autodesk domain. In other words, we do not officially support running the application offline. If you need to support workflows where your users could be temporarily disconnected from the internet, please refer to https://forge.autodesk.com/blog/disconnected-workflows.
QUESTION
I'm using the Autodesk Forge API to convert a range of models from various formats into SVF files, and trying to use the Webhooks API to listen for transformation complete events for jobs posted to the Model Derivative service.
I have successfully created the webhook, and verified its existence by calling the get Hooks API endpoint. Below is the basic response i receive.
...ANSWER
Answered 2020-Nov-05 at 09:28There seems to be a typo in the job payload: wokflow
should be workflow
.
Note that you can also test incoming webhook requests using online tools such as https://webhook.site.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SVF
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page