Bug in Create.NewDimension

Bug in Create.NewDimension

ahmed.samy661993
Contributor Contributor
386 Views
1 Reply
Message 1 of 2

Bug in Create.NewDimension

ahmed.samy661993
Contributor
Contributor

I'm working on plugin that can create dimension from curved element to nearest (columns, str walls, arc walls, grids).

Problem : when i use => doc.Create.NewDimension(doc.ActiveView, unbound, references);

and one of two references is from element in linked files.

Error message : Invalid number of references.

Note : I tracked my code many times and I sure no mistake in it.

plugin.PNGiii.png

**I noticed when created dimension manually to grid in linked file (reference is RevitLinkInstance not grid)

note.PNG

any idea how to create dimension to element in linked file ?

0 Likes
Accepted solutions (1)
387 Views
1 Reply
Reply (1)
Message 2 of 2

caroline.gitonga
Autodesk
Autodesk
Accepted solution

Hi @ahmed.samy661993,

Thank you for raising this question.

 

A similar question was raised sometimes back and a solution was found.

 

Kindly, check the link below see if it addresses your issue

https://forums.autodesk.com/t5/revit-api-forum/create-dimensions-for-familyinstance-in-linked-file/t... 

Carol Gitonga, Developer Advocacy and Support, ADN Open