
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to get the filepath for an inserted image.
Looks like RASTER_SYMBOL_FILENAME builtinparameter holds the value (see revit loop up below).
But I am not being able to get the value.
I am using the RevitPythonShell and Revit 2015. Below is the code I tried.
Questions:
- Is get_Parameter still the proper way to get the BIP value?
Found this method being used in several examples, including here, although it's an old post I think I remember seeing a deprecation msg about this method. I tried .looking for it using Parameter and iterating through GetParameters as as well.
- Is RASTER_SYMBOL_FILENAME what I should be looking for when trying to find the original img filepath?
Thanks you in advance
IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.42000 (64-bit) Type "help", "copyright", "credits" or "license" for more information. >>> img = selection[0] >>> img.Category.Name 'Raster Images' >>> BIP = BuiltInParameter.RASTER_SYMBOL_FILENAME >>> fname = img.get_Parameter(BIP) >>> fname >>> print(fname) None
>>> fname = img.Parameter(BIP)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: indexer# is not callable
Solved! Go to Solution.