Hi,
I'm able to a add a DetailLine in a ViewSheet. I can also set the SetLineWeight between 1 and 16.
I need to set the the line width in mm ?
How could I do that ?
Here is ma code :
Hi,
I'm able to a add a DetailLine in a ViewSheet. I can also set the SetLineWeight between 1 and 16.
I need to set the the line width in mm ?
How could I do that ?
Here is ma code :
This question is from 2015 when apparently this wasn't possible.
I'm currently encountering the same problem.
PromptToPlaceViewOnSheet still doesn't seem to work with schedules.
Is there a way with the current API version to do this now?
I also tried using UIApplication.PostCommand() with PostableCommand.PlaceView, but I don't know how to set a certain view as default like you can do with element types with Document.SetDefaultElementTypeId().
Thanks in advance!
Hi,
Hard to say whithout some additional information.
Are all nodes already created or does it create subnodes dynamically
(if node is expanded it searches views matching criteria parentnode to fill subnodes)
Or
On node-expanding, anthing tied to it's event?
How does the ExpandAll get triggered?
If you leave "ExpandAll" off, and you manually do a ExpandAll does that work (with a button or so, or doubleclick topnode...).
- Michel
Jeremy,
Thanks for your reply. I think I must be missing something, though, because I can't figure out how your links relate to workarounds for binding redirects not working in the context of a Revit addin. As far as I can tell they relate to loading updated dlls in the Addin Manager. As it happens, I hadn't heard about the Addin Manager, so I'm super excited about that, but not sure how to apply those links to the issue above. Thanks!
Hi,
Be carefull, you're changing the STYLE and not the DetailLine instance "LineWeight" pen.
The Pen is a reference to the Line Weight settings, these unfortunate can't be accessed by API.
You could create you're own data that stores those values (if nobody changes the lineweights in the project!)
See: SetLineWeight
- Michel
Yes, I guess if I communicated with the author by email, and my email domain was the same as the purchaser, the request for a manual transfer wouldn't be questioned.
My main concern is tracking and keeping what is owned by the firm. I haven't inquired with our users yet, but there may be dozens of apps that are already owned by the firm that I don't know about (I'm new to the firm). The titles could have been purchased using non-firm email address (most of our users don't yet have Autodesk accounts since we use a license server).
I guess the only way to manage this it to ask every user in the firm if they've ever purchased an app using firm $ and maintain a list of purchases AND require that, for new apps purchased in the future, send me the info. Sounds like a plan, but in the real world, asking users to do this type of stuff, well, it just never happens.
I've just had a thought that I can inquire with accounting if see if they get small monthly or annual changes from the Autodesk app store. That might be more effective than asking users. I'll give it a try.
James
Oops, sorry, was logged into the wrong account. As you may have guessed, the above is also me.
What im trying to achieve is to select 2 elements on a pipe/duct run and get back all the elements that are in between. I know that this can be done in revit by selecting one element, then hovering over the other one and pressing tab, and all elements between will be highlighted and then you can click to select them.
I am aware that you can traverse it like Jeremy has shown it here: https://thebuildingcoder.typepad.com/blog/2013/02/simple-mep-system-traversal.html
Im thinking that if its possible to do it by hand in revit, there has to be something in the api that does the same thing, or some class that has the routing paths info but i just cant seem to find it. Any help would be appreciated, i will post here if i find anything.
It's worse than I imagined. I checked my Paypal account for an app that I purchased through the app store and the purchase is listed under the name of the author of the software, not "Autodesk". In the case of my particular title, the author was Russian (with the letters in Russian character set). No offense to the author, but that is NOT going to instill confidence in our accounting department with they see THAT on their list of charges!
Very disappointing.
So far i found MEPSystem has a property PipingNetwork that is an element set of all elements in that system. No luck finding anything about paths in the systems themselves.
I think what you should keep in mind is that the App Store is basically an "Ebay" for Application Add-ins. Autodesk does review and approve all of the apps after verifying that they work, but after that they do not handle or manage any of the fees or licensing / entitlements. Effectively they are hands off once a publisher gets an app approved unless there are issues.
If you are not comfortable with this scenario, then you should most likely reach out and work out a different agreement with the author especially if seeking an enterprise solution.
Nope. This is still missing in the Materials API. Among many other things.
I take the point about dimension references but I wonder if storing IDs is actually required? If I have a shopping basket with 3 items do I need to give each item a number to compare it with another basket where those three items are in exactly the same location within the basket? If you have two apples and they swap with one another and occupy the exact location as their counterpart occupied previously then this would be an issue but can a user achieve that precise swap in the family environment?
If you have the old file to compare against then you have all the geometric locations of items.
If I look for an extrusion that I know is in a fixed configuration (to a named FamilySymbol) in a project family and it is in a different configuration in the library family (for the same symbol) then the chances are modifications have been made. This is similar for dimension because we may not have the same reference ids but we know the dimension itself has geometry (two points and/or a curve that drive it) in a specific position and is attached to the extrusion we've identified at the same points (or not). I think XYZ locations could build a relationship tree between things. For comparison there would need to be a degree of inaccuracy when comparing locations.
The main benefit would be not adding additional data to the model.
Hello! I'm going to use the SunAndShadowSettings class to find out if windows let sunlight in at certain times. I just want to know if there are solutions without raycasting from sun position.
Looks like Revit 2014 (.Net 4.0 there was no change that year, changed to 4.0 for 2013 I believe).
The icon of the .sln file indicates: VS 2010. You can just upgrade it, the errors will be due to changes in the API since.
wrote: Looks like Revit 2014 (.Net 4.0 there was no change that year, changed to 4.0 for 2013 I believe).
I think the icon of the .sln file gives the game away: VS 2010. You can just upgrade it.
Yes, my icon says "2010". However, my VS-2017 chokes with namespaces, etc. I will go to the office where I have a PC running 2010 and another running 2013 to see what happens.
Thanks!
-Ramon
JFK Numbers
So the search works by copying the treeview to another hidden treeview which I call treeviewcache.
When the user types something into the search box, it does this:
1. Clear original treeview, then copy the treeviewcache back to the original treeview.
2. iterate all nodes of the treeview and remove any which don't contain the characters the user has typed.
3. Expand all nodes.
The above is triggered again when the user types another letter into the search box - it works quite well, apart from this one project where it hangs on expand all...
I really can't see why ExpandAll() would cause this.
Could it be some sort of "illegal" char in a viewname/number during search.
Can the user do a ExpandAll if you disable it?
Does it happen on the first search?
- Michel
This works flawlessly on all the projects I've tried, but hangs on one.
What exactly hangs, the TreeView itself or Revit total, and how do you end it?
Does Revit keep consuming resources, some kind of loop going on? (Illegal search/filter char?)
I'm sure its the expandall command thats causing the issue, I commented it out and everything worked well.
Also, I debugged it and watched the execution of the commands and it hanged as the Expandall command executed...
I'm unsure if I can somehow debug the expand all command?