Line drawn from a pickpoint (with distance and vector)

Hi, I defined the support line of a quote from a pick point and a line defined by vector and distance

this line is only a 90° rotation of a direction vector of parallel elements

I admit that I have difficulty analyzing the result

attached gif
question Forum english 21 02

pickpoint node

import sys
import clr

clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *
from Autodesk.Revit.UI.Selection import *

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

TaskDialog.Show("Passage de la cote", "Sélectionnez un point de passage de la cotation puis appuyez sur Esc")

outPt = []
flag = True
while flag:
	try:
		pt = uidoc.Selection.PickPoint("Sélectionnez un point de passage de la cotation puis appuyez sur Esc")
		outPt.append(pt.ToPoint())
	except:
		flag = False
		break

OUT = outPt

and extract from the script

thanks in advance
Sincerely
christian.stan

I’m assuming your question is concerning why the dimension string is not getting placed at the pick point when dimensioning angled elements. Not saying that this is causing the issue, I have a similar script where I am feed the pick point directly into the line.bystartpoint node and don’t have any issues with the dimension string not getting placed correctly.

1 Like

Thank you very much I will try your proposal and I will reduce the number of nodes
edit: I tried a DetailLine plot from the Pickpoint,
must come from my support vector for the line
cordially
christian.stan

1 Like

I corrected by geometry rotate of Direction line and angular input without going through the components
(no more worries)
thank you for putting me in the direction Mr. Samuel Taylor
Sincerely
christian.stan

1 Like