Giter VIP home page Giter VIP logo

aps-toolkit's Introduction

Hello there ๐Ÿ‘‹ , this place help you easier find some project I'm working on and some project I'm collaborate with other developer.

Project Working

  • Revit Addin Manager - Revit AddinManager update .NET assemblies without restart Revit for developer.

  • CadPythonShell - An IronPython console for Autocad and Civil 3d API, include full snoop Database to explore API

  • CadAddinManager - Cad AddinManager update .NET assemblies without restart Autocad and Civil3D for developer.

  • NavisAddinManager - Navis AddinManager update .NET assemblies without restart Navisworks for developer.

  • OpenMEP - A package for MEP, Computational Design, Generative Design inside Dynamo Revit , Sandbox , AutoCAD, Civil3D & more.

  • APSToolkit - A powerful tool to export autodesk platform services interactive data.

  • APSBot - Explore Data By CLI With Autodesk Platform Services

  • Acc Urn Details - Simple extension to snoop detail url Autodesk Construction Cloud

  • NavisLookup - Project support snoop full database support developer navisworks and explore navisworks API.

  • Awesome-Dynamo - Bring all awesome on Dynamo to a Book

  • DA-DynamoRevit - Make Dynamo Revit Possible Implement Design Automation With ACC

  • IFC-To-Excel - Convert Metadata IFC format to excel format, freedom with cross platform.

Project Collaborate

  • RevitLookup - Interactive Revit RFA and RVT project database exploration tool to view and navigate BIM element parameters, properties and relationships.

  • RevitLookupWpf - The project was developed to support programmers using Revit API to quickly look up and work efficiently with parameter objects.

  • RevitDBExplorer - Interactive Revit database exploration tool to view and edit BIM element parameters, properties and relationships.

  • speckle-sharp - .NET SDK, Schema and Connectors: Revit, Rhino, Grasshopper, Dynamo, ETABS, AutoCAD, Civil3D & more.

  • G-Shark - G-Shark is a free and open-source geometry library designed for computational designers and software developers in the Architecture, Engineering, and Construction (AEC) industry.

  • nuke - The AKEless Build System for C#/.NET

  • Dynamo - Open Source Graphical Programming for Design .

  • revitpythonshell - An IronPython scripting environment for Autodesk Revit and Vasari

  • docfx - Tools for authoring and publishing API documentation for .NET projects

  • XbimEssentials - A .NET library to work with data in the IFC format. This is the core component of the Xbim Toolkit

... Please find more on github ....

aps-toolkit's People

Contributors

chuongmep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aps-toolkit's Issues

Python JSONDecodeError on creating a PropDbReaderRevit

Hello, upon running below code

from aps_toolkit import Auth
from aps_toolkit import PropDbReaderRevit
import os
client_id = "XXX"
client_secret = "XXX"
auth = Auth(client_id, client_secret)
token = auth.auth2leg()
access_token = token.access_token

urn = "dXJuOmFkc2sud2lwZW1lYTpmcy5maWxlOnZmLkJBSUhTc09zVFdtY2tCYWdNMTNBWHc_dmVyc2lvbj0z"

prop_reader = PropDbReaderRevit(urn, token)

I get a JSONDecodeError.
With the same token and URN I am able to make the C# example work, so this would not be the issue.

---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py:971, in Response.json(self, **kwargs)
    970 try:
--> 971     return complexjson.loads(self.text, **kwargs)
    972 except JSONDecodeError as e:
    973     # Catch JSON-related errors and raise as requests.JSONDecodeError
    974     # This aliases json.JSONDecodeError and simplejson.JSONDecodeError

File ~\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py:346, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    343 if (cls is None and object_hook is None and
    344         parse_int is None and parse_float is None and
    345         parse_constant is None and object_pairs_hook is None and not kw):
--> 346     return _default_decoder.decode(s)
    347 if cls is None:

File ~\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py:337, in JSONDecoder.decode(self, s, _w)
    333 """Return the Python representation of ``s`` (a ``str`` instance
    334 containing a JSON document).
    335 
    336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    338 end = _w(s, end).end()

File ~\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py:355, in JSONDecoder.raw_decode(self, s, idx)
    354 except StopIteration as err:
--> 355     raise JSONDecodeError("Expecting value", s, err.value) from None
    356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

JSONDecodeError                           Traceback (most recent call last)
Cell In[23], line 2
      1 from aps_toolkit import PropDbReaderRevit
----> 2 prop_reader = PropDbReaderRevit(urn, token)
      4 # categories = prop_reader.get_all_categories()
      5 # # to dataframe with columns "dbid,category" from dict categories
      6 # df = pd.DataFrame.from_dict(categories, orient='index', columns=["category"])
      7 # df = df.reset_index()
      8 # df = df.rename(columns={"index":"dbid"})
      9 # df.head(20)

File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\aps_toolkit\PropReader.py:48, in PropReader.__init__(self, urn, token)
     46 # request
     47 response = requests.get(URL, headers=headers)
---> 48 json_response = response.json()
     49 children = json_response['derivatives'][0]["children"]
     50 path = ""

File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py:975, in Response.json(self, **kwargs)
    971     return complexjson.loads(self.text, **kwargs)
    972 except JSONDecodeError as e:
    973     # Catch JSON-related errors and raise as requests.JSONDecodeError
    974     # This aliases json.JSONDecodeError and simplejson.JSONDecodeError
--> 975     raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.