Connector.Id

Connector.Id

studio-a-int
Advocate Advocate
338 Views
1 Reply
Message 1 of 2

Connector.Id

studio-a-int
Advocate
Advocate

Is there a way to reassign a new Id value of an existing Connector in a Revit Family?

The API expose just:

public int Id { get; }

which obvious will not allow to reassign the Id.

In one of the applications we developed, enumerating the Connectors Ids resulted in Cable Tray Fittings Tees Connectors with Ids: 1, 4 and 5 (we were expecting 1, 2 and 3 for a Tee).

We developed other methods to address our application needs, but I was wondering if there is a way to reassign the Id value once the Connector is created.

 

Thank you for your suggestions!

 
0 Likes
339 Views
1 Reply
Reply (1)
Message 2 of 2

jnyp
Enthusiast
Enthusiast

If I recall correctly there is not a way to assign the id. They are created sequentially and are unique in each family. In order to renumber them you would have to re-create the family and only create the connectors in the order you want them to appear by id.

0 Likes