Replies: 3 comments 11 replies
-
How would that work for derived types? The way I check the type is use db = Db.curDb()
line = Db.Line(Ge.Point3d(0,0,0),Ge.Point3d(10,0,0))
id = db.addToModelspace()
if id.isDerivedFrom(Db.Curve.desc()):
curve = Db.Curve(id) |
Beta Was this translation helpful? Give feedback.
7 replies
-
Return types.json is generated I’m still on the fence about this.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Does that mean I shouldn't edit it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal: Generic ObjectId Types for Better Type Safety
Problem
Currently, PyRx functions return
ObjectId
objects, but there's no type-level indication of what kind of database object they reference. This leads to potential runtime errors when trying to open objects with the wrong type:Proposed Solution
Introduce generic
ObjectId[T]
types that encode the database object type at the type level:Benefits
Example API Changes
Beta Was this translation helpful? Give feedback.
All reactions