Is it possible with Autodesk Forge?
Upload the DWG file and view it on the web. Maybe I can use Forge's viwer API. Is that right?
And the web has a button. Can I move the focus to a specific object when I click that button? Using Javascript.
(I will assign ID values to objects while working in Autodesk CAD.)
Similar to Question 2. Can I change the color of a specific object using JavaScript?
I'm not good at English. Please politely understand.
Help!
Upload the DWG file and view it on the web. Maybe I can use Forge's viwer API. Is that right?
Yes follow the tutorial here
And the web has a button. Can I move the focus to a specific object when I click that button? Using Javascript.
Try viewer.isolate(dbid) or viewer.fitToView(dbid)
Can I change the color of a specific object using JavaScript?
Try viewer.setThemingColor
You can find doc/usage details for these methods on our official website
Related
We use forge viewer in our app. It's work good but, we want to add more functionality. But for now i can't get the element Id. I tried to use NOP_VIEWER.getSelection() but in our app return empty array. I also tried load our document here https://forge-extensions.autodesk.io/ and tried to do the same. In your example it works. Could you tell me where is the mistake?
I want to display some icons ( ex : exclamation mark ) on the viewer. My scenario is retrieving some data and display an icon on a particular object accordingly.
I could not find any documentation regarding this but found a sample code which uses an extension and then having icons as markups. Is there anyway to do a similar kind of operation without using an extension ??
Thank you!!
Please refer to sprites tutorial.
We`re also covering different options for labels in this series of blogs.
Does anyone know of a way to embed html into Autocad? I want to be able to click on an object and a window within Autocad pop-up with some pictures and text in a table. I'm hoping there's a way that looks similar to a Google earth kml when the description shows?
Yes that is possible. Autocad can be driven by Javascript meanwhile. And by that you can create own palettes which are in fact a chrome browser window which seamless integrates in the Acad application. You can nearly reach the full acad API from Javascript. And its also possible to extend the JS API by own routines as well. So you will be able to use the native links inside the drawing as well as any own Xdata or Dictionarys as well.
Getting started with Autocad Javascript|Enhance ACAD JS API by .NET| Updated JS API Reference
The user should enter a valid adress and click ok. Then a Google-Map should be shown. Then the user shoult simply say ok(if the wright place is shown in the map) or he should be able to change the adress (if the wrong place is shown in the map), by entering a new adress or by moving the pin on the map.
Is this possible with play framework?
And how can i get the gps-coordinates of the selected point?
Kind regards, joe
This can be done entirely client side using JavaScript and the GoogleMaps API, so you could build this in pure HTML if you wanted to! So, yes Play can easily support this.
Yes, this is possible given that the Google Maps API let's you do it. This is not something limited by Play, which in itself it only helps you create websites, but by the Maps API and what you can do with it.
In other words, you could do this with Play, Lift, Struts, Ruby or your own framework.
I just wrote this article/application using Scala, Play Framework and Google Maps--it might help you!
http://geeks.aretotally.in/location-based-play-framework-scala-google-maps-clustering-postgresql-and-anorm-appli
I have a map of several counties I need to turn into a county select menu (i.e clicking Leicestershire will select Leicestershire.
I am using a php built system that this map will need to return the appropriate value to. I am thinking this will be a get in the url, checked for valid values in the backend.
How would you approach this? A html co-ordinate map? Some sort of Javascript? Flash?
I am aware all those solutions have one drawback or another. Does anyone know a better way of doing this? Or an existing opensource project?
Just an idea, if I read your problem correctly: I would personally use the Google Maps API for this. Plot each county onto your custom Google Map, then when you click each marker an info window could appear with "Select this County". Click the link and pass a value through the URL to your PHP script.
Used a html map system. Dreamweaver made it easy (first time I've used the design screen seriously)